$OpenBSD: patch-rsnapshot-program_pl,v 1.1.1.1 2005/02/21 16:08:06 alek Exp $ --- rsnapshot-program.pl.orig Wed Feb 2 05:17:47 2005 +++ rsnapshot-program.pl Tue Feb 15 19:43:17 2005 @@ -303,7 +303,7 @@ sub find_config_file { # autoconf variables (may have too many slashes) my $autoconf_sysconfdir = '@sysconfdir@'; my $autoconf_prefix = '@prefix@'; - my $default_config_file = '/etc/rsnapshot.conf'; + my $default_config_file = '!!SYSCONFDIR!!/rsnapshot.conf'; # consolidate multiple slashes $autoconf_sysconfdir =~ s/\/+/\//g; @@ -4480,7 +4480,7 @@ of cron jobs. It is possible, however, t with an alternate configuration file. All important options are specified in a configuration file, which is -located by default at B. An alternate file can be +located by default at B. An alternate file can be specified on the command line. There are also additional options which can be passed on the command line. @@ -4506,14 +4506,10 @@ B<-D> a firehose of diagnostic informati =head1 CONFIGURATION -B is the default configuration file. All parameters -in this file must be separated by tabs. B +B is the default configuration file. All parameters +in this file must be separated by tabs. B can be used as a reference. -It is recommended that you copy B to -B, and then modify B to suit -your needs. - Here is a list of allowed parameters: =over 4 @@ -4731,9 +4727,6 @@ B =over 4 Arguments to be passed to du. If not specified, the default is -csh. -GNU du supports -csh, BSD du supports -csk, Solaris du doesn't support --c at all. The GNU version is recommended, since it offers the most -features. =back @@ -4928,7 +4921,7 @@ also want to run it from the command lin a feel for what it's doing. Here is an example crontab entry, assuming that intervals B, -B, B and B have been defined in B +B, B and B have been defined in B =over 4 @@ -4964,7 +4957,7 @@ really comes in handy. Remember that these are just the times that the program runs. To set the number of backups stored, set the B numbers in -B +B To check the disk space used by rsnapshot, you can call it with the "du" argument. @@ -4991,10 +4984,6 @@ B =back -The GNU version of "du" is preferred. The BSD version works well also, but does -not support the -h flag (use -k instead, to see the totals in kilobytes). Other -versions of "du", such as Solaris, may not work at all. - =head1 EXIT VALUES =over 4 @@ -5009,7 +4998,7 @@ B<2> Some warnings occurred, but the ba =head1 FILES -/etc/rsnapshot.conf +!!SYSCONFDIR!!/rsnapshot.conf =head1 SEE ALSO @@ -5038,8 +5027,8 @@ B to B in B +Set B to B in B Set the file permissions on these directories as follows: