3fd50f1f02
update to 1.2.1; from Sigfred Haversen <bsdlist@mumak.com> (maintainer) http://www.vuxml.org/openbsd/c606260a-aa87-11d9-8af3-00065bd5b0b6.html
86 lines
3.4 KiB
Plaintext
86 lines
3.4 KiB
Plaintext
$OpenBSD: patch-rsnapshot-program_pl,v 1.2 2005/04/11 13:00:08 robert Exp $
|
|
--- rsnapshot-program.pl.orig Mon Apr 11 06:23:13 2005
|
|
+++ rsnapshot-program.pl Mon Apr 11 06:31:38 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;
|
|
@@ -4489,7 +4489,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</etc/rsnapshot.conf>. An alternate file can be
|
|
+located by default at B<!!SYSCONFDIR!!/rsnapshot.conf>. An alternate file can be
|
|
specified on the command line. There are also additional options which
|
|
can be passed on the command line.
|
|
|
|
@@ -4515,12 +4515,12 @@ B<-D> a firehose of diagnostic informati
|
|
|
|
=head1 CONFIGURATION
|
|
|
|
-B</etc/rsnapshot.conf> is the default configuration file. All parameters
|
|
-in this file must be separated by tabs. B</etc/rsnapshot.conf.default>
|
|
+B<!!SYSCONFDIR!!/rsnapshot.conf> is the default configuration file. All parameters
|
|
+in this file must be separated by tabs. B<!!SAMPLES_DIR!!/rsnapshot.conf.default>
|
|
can be used as a reference.
|
|
|
|
-It is recommended that you copy B</etc/rsnapshot.conf.default> to
|
|
-B</etc/rsnapshot.conf>, and then modify B</etc/rsnapshot.conf> to suit
|
|
+It is recommended that you copy B<!!SAMPLES_DIR!!/rsnapshot.conf.default> to
|
|
+B<!!SYSCONFDIR!!/rsnapshot.conf>, and then modify B<!!SYSCONFDIR!!/rsnapshot.conf> to suit
|
|
your needs.
|
|
|
|
Here is a list of allowed parameters:
|
|
@@ -4937,7 +4937,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<hourly>,
|
|
-B<daily>, B<weekly> and B<monthly> have been defined in B</etc/rsnapshot.conf>
|
|
+B<daily>, B<weekly> and B<monthly> have been defined in B<!!SYSCONFDIR!!/rsnapshot.conf>
|
|
|
|
=over 4
|
|
|
|
@@ -4973,7 +4973,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<interval> numbers in
|
|
-B</etc/rsnapshot.conf>
|
|
+B<!!SYSCONFDIR!!/rsnapshot.conf>
|
|
|
|
To check the disk space used by rsnapshot, you can call it with the "du" argument.
|
|
|
|
@@ -5018,7 +5018,7 @@ B<2> Some warnings occurred, but the ba
|
|
|
|
=head1 FILES
|
|
|
|
-/etc/rsnapshot.conf
|
|
+!!SYSCONFDIR!!/rsnapshot.conf
|
|
|
|
=head1 SEE ALSO
|
|
|
|
@@ -5047,8 +5047,8 @@ B<http://lists.sourceforge.net/lists/lis
|
|
|
|
=head1 NOTES
|
|
|
|
-Make sure your /etc/rsnapshot.conf file has all elements separated by tabs.
|
|
-See /etc/rsnapshot.conf.default for a working example file.
|
|
+Make sure your !!SYSCONFDIR!!/rsnapshot.conf file has all elements separated by tabs.
|
|
+See !!SAMPLES_DIR!!/rsnapshot.conf.default for a working example file.
|
|
|
|
Make sure you put a trailing slash on the end of all directory references.
|
|
If you don't, you may have extra directories created in your snapshots.
|
|
@@ -5064,7 +5064,7 @@ If you would like regular users to be ab
|
|
there are a number of ways this can be accomplished. One such scenario
|
|
would be:
|
|
|
|
-Set B<snapshot_root> to B</.private/.snapshots> in B</etc/rsnapshot.conf>
|
|
+Set B<snapshot_root> to B</.private/.snapshots> in B<!!SYSCONFDIR!!/rsnapshot.conf>
|
|
|
|
Set the file permissions on these directories as follows:
|
|
|