How to copy to different directories?
June 02, 2015 12:14AM
Hi,

I want to make rsnapshot copy data from different servers to different directories on the same host.

What I did was "cp /etc/rsnapshot.conf /etc/rsnapshot2.conf" and so on, made until number 5 (number of different directories.
Then I edited "/etc/rsnapshot.conf" to set it up for each different destination. Checked each one with "rsnapshot configtest", syntax ok.
Now I went to "/etc/cron.d/rsnapshot" and set it up like this:

# 0 */4 * * * root /usr/bin/rsnapshot hourly -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf
# 30 3 * * * root /usr/bin/rsnapshot daily -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf
# 0 3 * * 1 root /usr/bin/rsnapshot weekly -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf
# 30 2 1 * * root /usr/bin/rsnapshot monthly -c /etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c /etc/rsnapshot5.conf

Set the times with crontab -e and left it for the day, to check how it works after the jobs.
The result was bad. Only the first rsnapshot worked, only the hourly rsnapshot of the first directory worked, nothing else.

How do I fix this please? What Am I doing wrong?

Thanks,
Barak.
How to copy to different directories?
June 02, 2015 03:20AM
Hi,

[quote]On June 2, 2015 at 9:15 AM Eingedi <rsnaphshot-forum < at > backupcentral.com>
wrote:
# 0 */4 * * * root /usr/bin/rsnapshot hourly -c
/etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c
/etc/rsnapshot5.conf
# 30 3 * * * root /usr/bin/rsnapshot daily -c
/etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c
/etc/rsnapshot5.conf
# 0 3 * * 1 root /usr/bin/rsnapshot weekly -c
/etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c
/etc/rsnapshot5.conf
# 30 2 1 * * root /usr/bin/rsnapshot monthly -c
/etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c
/etc/rsnapshot5.conf
[/quote]
rsnapshot allows only one time the -c option. Multiple -c options are
senseless, too.

Convert the line:

# 0 */4 * * * root /usr/bin/rsnapshot hourly -c
/etc/rsnapshot2.conf -c /etc/rsnapshot3.conf -c /etc/rsnapshot4.conf -c
/etc/rsnapshot5.conf
into something like:
# 0 */4 * * * root /usr/bin/rsnapshot -c
/etc/rsnapshot2.conf hourly
# 0 */4 * * * root /usr/bin/rsnapshot -c
/etc/rsnapshot3.conf hourly
# 0 */4 * * * root /usr/bin/rsnapshot -c
/etc/rsnapshot4.conf hourly
... and so on

And additionally do this with all other lines, too.

Mit freundlichen Grüßen,
Benedikt Heine

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 02, 2015 05:10AM
Hmm... It doesn't work.
I've tried changing it only to :
# 0 */4 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly

But that doesn't seem to do the job either. Tried to edit it this way on crontab -e, still no change.
In all cases, rsnapshot only copies the data given on the first .conf file, nothing else.

Maybe this is a problem of rsnapshots clashing each other? Since they are all at the same time, I guess, or no?

Help :(
How to copy to different directories?
June 02, 2015 05:41AM
On Tue, Jun 02, 2015 at 05:10:20AM -0700, Eingedi (rsnaphshot-forum < at > backupcentral.com) wrote:

[quote]Hmm... It doesn't work.
I've tried changing it only to :
# 0 */4 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly

But that doesn't seem to do the job either. Tried to edit it this way on crontab -e, still no change.
In all cases, rsnapshot only copies the data given on the first .conf file, nothing else.

Maybe this is a problem of rsnapshots clashing each other? Since they are all at the same time, I guess, or no?

[/quote]
Did you change lockfile settings?
Each configuration file should use different lockfile,
if they need to run at the same time.

--
Tapani Tarvainen

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 02, 2015 05:50AM
lockfile is enabled. It needs to be, right?

# If enabled, rsnapshot will write a lockfile to prevent two instances
# from running simultaneously (and messing up the snapshot_root).
# If you enable this, make sure the lockfile directory is not world
# writable. Otherwise anyone can prevent the program from running.
#
lockfile /var/run/rsnapshot.pid

# By default, rsnapshot check lockfile, check if PID is running
# and if not, consider lockfile as stale, then start
# Enabling this stop rsnapshot if PID in lockfile is not running
#
#stop_on_stale_lockfile 0
How to copy to different directories?
June 02, 2015 06:51AM
On Tue, Jun 02, 2015 at 05:50:07AM -0700, Eingedi (rsnaphshot-forum < at > backupcentral.com) wrote:

[quote]lockfile is enabled. It needs to be, right?
[/quote]
Yes, but you should use different lockfile in different
config files. E.g.,

in the first one use

lockfile /var/run/rsnapshot1.pid

in the 2nd one

lockfile /var/run/rsnapshot2.pid

in the 3rd one

lockfile /var/run/rsnapshot3.pid

&c.

--
Tapani Tarvainen

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 02, 2015 07:06AM
Hi,

I changed it. Still doesn't work :/
It only applies the first original config, in the log file it writes only about the first, not a single word about the others.
How to copy to different directories?
June 02, 2015 07:44AM
[quote]On June 2, 2015 at 4:06 PM Eingedi <rsnaphshot-forum < at > backupcentral.com>
wrote:
I changed it. Still doesn't work :/
[/quote]
There is something called log. Please provide your log or an
error-message.

The only thing I would think about:

[quote]# 0 */4 * * * root /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
[/quote]^ Have you copied this hash also into your crontab?

Mit freundlichen Grüßen,
Benedikt Heine

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 02, 2015 07:44AM
Hallo, Eingedi,

Du meintest am 02.06.15:

[quote]I want to make rsnapshot copy data from different servers to
different directories on the same host.
[/quote]
[quote]What I did was "cp /etc/rsnapshot.conf /etc/rsnapshot2.conf" and so
on, made until number 5 (number of different directories. Then I
edited "/etc/rsnapshot.conf" to set it up for each different
destination. Checked each one with "rsnapshot configtest", syntax ok.
[/quote]
You need different PID-files, different logfiles and different snapshot
roots. Perhaps you need different include_files and exclude_files too.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 03, 2015 01:07AM
I made different log and lock files, still rsnapshot doesn't seem to even recognize there are more than one .conf
I didn't set up anything in 'include' and 'exclude'.

I really need to make this work...
How to copy to different directories?
June 03, 2015 02:13AM
Hallo, Eingedi,

Du meintest am 03.06.15:

[quote]I made different log and lock files, still rsnapshot doesn't seem to
even recognize there are more than one .conf
[/quote]
Do you use different "snapshot_root" places? Otherwise it may happen
that the second rsnapshot call overwrites the results of the first.

How do you call/invoke the *.conf?

Can you please attach such a *.conf in your next reply? Thank you!

(or - better - two such *.conf files, or at least the different lines
in these files)

[quote]I didn't set up anything in 'include' and 'exclude'.
[/quote]
Perhaps these options are not needed in your special installation.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 03, 2015 02:48AM
I've got /etc/rsnapshot.conf (which is the original). I simply copied that find and changed the name to '/etc/rsnapshot2.conf', '/etc/rsnapshot3.conf' etc... until number 5.

[b]Here's my '/etc/rsnapshot.conf' configuration (relevant parts):[/b]

snapshot_root /path/to/directory/

logfile /var/log/rsnapshot.log
lockfile /var/run/rsnapshot.pid

backup root@remote-client:/etc/ remote-client/ exclude=mtab,exclude=core
backup root@remote-client:/home/ remote-client/ exclude=mtab,exclude=core
backup root@remote-client:/usr/local/ remote-client/ exclude=mtab,exclude=core

--------------------------------------------

[b]Here's the '/etc/rsnapshot2.conf' configuration:[/b]

snapshot_root /path/to/directory2/

logfile /var/log/rsnapshot2.log
lockfile /var/run/rsnapshot2.pid

backup root@remote-client2:/etc/ remote-client2/ exclude=mtab,exclude=core
backup root@remote-client2:/home/ remote-client2/ exclude=mtab,exclude=core
backup root@remote-client2:/usr/local/ remote-client2/ exclude=mtab,exclude=core

---------------------------------------------

[b]Here's the crontab -e:[/b]

0 8-20/4 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
0 21 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf daily
0 12 * * 6 /usr/bin/rsnapshot -c /etc/rsnapshot2.conf weekly

---------------------------------------------

rsnapshot configtest -> syntax ok.
I've also tried to put same configuration of rsnapshot2.conf on rsnapshot.conf to check if there was something wrong with the client itself, but it worked.
Meaning it's just an issue with rsnapshot not being able to recognize the other *.conf
How to copy to different directories?
June 03, 2015 06:05AM
On Wed, 03 Jun 2015 02:48:55 -0700
Eingedi <rsnaphshot-forum < at > backupcentral.com> wrote:

[quote]I've got /etc/rsnapshot.conf (which is the original). I simply copied
that find and changed the name to '/etc/rsnapshot2.conf',
'/etc/rsnapshot3.conf' etc... until number 5.

Here's my '/etc/rsnapshot.conf' configuration (relevant parts):

snapshot_root /path/to/directory/

logfile /var/log/rsnapshot.log
lockfile /var/run/rsnapshot.pid

backup root < at > remote-client:/etc/ remote-client/
exclude=mtab,exclude=core backup root < at > remote-client:/home/
remote-client/ exclude=mtab,exclude=core backup
root < at > remote-client:/usr/local/ remote-client/
exclude=mtab,exclude=core

--------------------------------------------

Here's the '/etc/rsnapshot2.conf' configuration:

snapshot_root /path/to/directory2/

logfile /var/log/rsnapshot2.log
lockfile /var/run/rsnapshot2.pid

backup root < at > remote-client2:/etc/ remote-client2/
exclude=mtab,exclude=core backup root < at > remote-client2:/home/
remote-client2/ exclude=mtab,exclude=core backup
root < at > remote-client2:/usr/local/ remote-client2/
exclude=mtab,exclude=core

---------------------------------------------

Here's the crontab -e:

0 8-20/4 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
0 21 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf daily
0 12 * * 6 /usr/bin/rsnapshot -c /etc/rsnapshot2.conf weekly

---------------------------------------------

rsnapshot configtest -> syntax ok.
I've also tried to put same configuration of rsnapshot2.conf on
rsnapshot.conf to check if there was something wrong with the client
itself, but it worked. Meaning it's just an issue with rsnapshot not
being able to recognize the other *.conf

[/quote]
Have you:
* read the manpage?
* increased the logging verbosity or used -D in your config(s)/cron
command?
* examined the logs produced?
* run from command line with -t?

If after this you still have questions, the data from above it would
help us to help you diagnose your issue.

--
Regards,
Christopher Barry

Random geeky fortune:
RAM wasn't built in a day.

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 04, 2015 01:11AM
I read the man page.
There's nothing on the log file of the other *.conf
Only the first, original, *.conf rsnapshot is being displayed and working properly.
I can show you the logs but there's really nothing to show. It's like rsnapshot doesn't recognize any other *.conf except for the original.
How to copy to different directories?
June 04, 2015 02:04AM
Hallo, Eingedi,

Du meintest am 04.06.15:

[quote]There's nothing on the log file of the other *.conf
[/quote]
Strange.
No reaction, no message?
Even if you run these other jobs not via "cron" but directly from the
command line?
A cronjob which is produced via "crontab -e" should produce a message in
"/var/log/messages" (or in some similar place, depending on your
distribution).

One possible reason for "no reaction": the delimiter in some lines is
not the "tab" (the pure "tab") but some other "white space".
Another: the "cron" daemon is dead.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 04, 2015 02:17AM
I tried to ran it from command line and not from cron, same result. There's no reaction or message regarding the other *.conf rsnapshots.
I know the cron daemon is working because I have a different job there who's working properly.

rsnapshot doesn't seem to recognize any *.conf except for the original...
How to copy to different directories?
June 04, 2015 04:35AM
Hi Eingedi,

[quote]On June 4, 2015 at 11:18 AM Eingedi <rsnaphshot-forum < at > backupcentral.com>
wrote:

I tried to ran it from command line and not from cron, same result.
There's no reaction or message regarding the other *.conf rsnapshots.
I know the cron daemon is working because I have a different job there
who's working properly.
[/quote]
- What is the command you executed?
- Can you give us your config-file?
- What is the exit-code of rsnapshot?

[quote]rsnapshot doesn't seem to recognize any *.conf except for the
original...
[/quote]
I don't believe this, but if you answer the questions, we can help you.

~ Benedikt

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 04, 2015 05:01AM
- The command I exucuted? Simply 'rsnapshot hourly' or '/usr/bin/rsnapshot hourly'
with the crontab being :

0 8-20/4 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
0 21 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf daily
0 12 * * 6 /usr/bin/rsnapshot -c /etc/rsnapshot2.conf weekly

----------------------------------------------

the full config file?

###########################
# SNAPSHOT ROOT DIRECTORY #
###########################

# All snapshots will be stored under this root directory.
#
snapshot_root /destination/path/

# If no_create_root is enabled, rsnapshot will not automatically create the
# snapshot_root directory. This is particularly useful if you are backing
# up to removable media, such as a FireWire or USB drive.
#
#no_create_root 1

#################################
# EXTERNAL PROGRAM DEPENDENCIES #
#################################

# LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra features.
# EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
#
# See the README file or the man page for more details.
#
cmd_cp /bin/cp

# uncomment this to use the rm program instead of the built-in perl routine.
#
cmd_rm /bin/rm
# rsync must be enabled for anything to work. This is the only command that
# must be enabled.
#
cmd_rsync /usr/bin/rsync

# Uncomment this to enable remote ssh backups over rsync.
#
cmd_ssh /usr/bin/ssh

# Comment this out to disable syslog support.
#
cmd_logger /usr/bin/logger

# Uncomment this to specify the path to "du" for disk usage checks.
# If you have an older version of "du", you may also want to check the
# "du_args" parameter below.
#
#cmd_du /usr/bin/du

# Uncomment this to specify the path to rsnapshot-diff.
#
#cmd_rsnapshot_diff /usr/bin/rsnapshot-diff

# Specify the path to a script (and any optional arguments) to run right
# before rsnapshot syncs files
#
#cmd_preexec /path/to/preexec/script

# Specify the path to a script (and any optional arguments) to run right
# after rsnapshot syncs files
#
#cmd_postexec /path/to/postexec/script

# Paths to lvcreate, lvremove, mount and umount commands, for use with
# Linux LVMs.
#
#linux_lvm_cmd_lvcreate /path/to/lvcreate
#linux_lvm_cmd_lvremove /path/to/lvremove
#linux_lvm_cmd_mount /bin/mount
#linux_lvm_cmd_umount /bin/umount

#########################################
# BACKUP INTERVALS #
# Must be unique and in ascending order #
# i.e. hourly, daily, weekly, etc. #
#########################################

retain hourly 4
retain daily 7
retain weekly 4
#retain monthly 3

############################################
# GLOBAL OPTIONS #
# All are optional, with sensible defaults #
############################################

# Verbose level, 1 through 5.
# 1 Quiet Print fatal errors only
# 2 Default Print errors and warnings only
# 3 Verbose Show equivalent shell commands being executed
# 4 Extra Verbose Show extra verbose information
# 5 Debug mode Everything
#
verbose 2

# Same as "verbose" above, but controls the amount of data sent to the
# logfile, if one is being used. The default is 3.
#
loglevel 5
# If you enable this, data will be written to the file you specify. The
# amount of data written is controlled by the "loglevel" parameter.
#
logfile /var/log/rsnapshot.log

# If enabled, rsnapshot will write a lockfile to prevent two instances
# from running simultaneously (and messing up the snapshot_root).
# If you enable this, make sure the lockfile directory is not world
# writable. Otherwise anyone can prevent the program from running.
#
lockfile /var/run/rsnapshot.pid

# By default, rsnapshot check lockfile, check if PID is running
# and if not, consider lockfile as stale, then start
# Enabling this stop rsnapshot if PID in lockfile is not running
#
#stop_on_stale_lockfile 0

# Default rsync args. All rsync commands have at least these options set.
#
#rsync_short_args -a
#rsync_long_args --delete --numeric-ids --relative --delete-excluded
# ssh has no args passed by default, but you can specify some here.
#
#ssh_args -p 22

# Default arguments for the "du" program (for disk space reporting).
# The GNU version of "du" is preferred. See the man page for more details.
# If your version of "du" doesn't support the -h flag, try -k flag instead.
#
#du_args -csh

# If this is enabled, rsync won't span filesystem partitions within a
# backup point. This essentially passes the -x option to rsync.
# The default is 0 (off).
#
#one_fs 0

# The include and exclude parameters, if enabled, simply get passed directly
# to rsync. If you have multiple include/exclude patterns, put each one on a
# separate line. Please look up the --include and --exclude options in the
# rsync man page for more details on how to specify file name patterns.
#
#include ???
#include ???
#exclude ???
#exclude ???
# The include_file and exclude_file parameters, if enabled, simply get
# passed directly to rsync. Please look up the --include-from and
# --exclude-from options in the rsync man page for more details.
#
#include_file /path/to/include/file
#exclude_file /path/to/exclude/file

# If your version of rsync supports --link-dest, consider enable this.
# This is the best way to support special files (FIFOs, etc) cross-platform.
# The default is 0 (off).
#
#link_dest 0

# When sync_first is enabled, it changes the default behaviour of rsnapshot.
# Normally, when rsnapshot is called with its lowest interval
# (i.e.: "rsnapshot hourly"), it will sync files AND rotate the lowest
# intervals. With sync_first enabled, "rsnapshot sync" handles the file sync,
# and all interval calls simply rotate files. See the man page for more
# details. The default is 0 (off).
#
#sync_first 0

# If enabled, rsnapshot will move the oldest directory for each interval
# to [interval_name].delete, then it will remove the lockfile and delete
#use_lazy_deletes 0

# Number of rsync re-tries. If you experience any network problems or
# network card issues that tend to cause ssh to crap-out with
# "Corrupted MAC on input" errors, for example, set this to a non-zero
# value to have the rsync operation re-tried
#
#rsync_numtries 0

# LVM parameters. Used to backup with creating lvm snapshot before backup
# and removing it after. This should ensure consistency of data in some special
# cases
#
# LVM snapshot(s) size (lvcreate --size option).
#
#linux_lvm_snapshotsize 100M

# Name to be used when creating the LVM logical volume snapshot(s).
#
#linux_lvm_snapshotname rsnapshot

# Path to the LVM Volume Groups.
#
#linux_lvm_vgpath /dev

# Mount point to use to temporarily mount the snapshot(s).
#
#linux_lvm_mountpath /path/to/mount/lvm/snapshot/during/backup

###############################
### BACKUP POINTS / SCRIPTS ###
###############################

# LOCALHOST
#backup /etc/passwd localhost/
#backup /home/foo/My Documents/ localhost/
#backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
#backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
# You must set linux_lvm_* parameters below before using lvm snapshots
#backup lvm://vg0/xen-home/ lvm-vg0/xen-home/
backup root@remote-client:/etc/ remote-client/ exclude=mtab,exclude=core
backup root@remote-client:/home/ remote-client/ exclude=mtab,exclude=core
backup root@remote-client:/usr/local/ remote-client/ exclude=mtab,exclude=core

That is the full config file. The other *.conf files are exactly the same except for the paths and destinations.

--------------------------------------------------------------

- exit-code? I don't know what that is...
How to copy to different directories?
June 04, 2015 05:37AM
On Thu, Jun 4, 2015 at 8:02 AM, Eingedi
<rsnaphshot-forum < at > backupcentral.com> wrote:
[quote]- The command I exucuted? Simply 'rsnapshot hourly' or '/usr/bin/rsnapshot hourly'
with the crontab being :

0 8-20/4 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
0 21 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf daily
0 12 * * 6 /usr/bin/rsnapshot -c /etc/rsnapshot2.conf weekly
[/quote]
I don't see the cron jobs for your other configurations?

[quote]----------------------------------------------

the full config file?
[/quote]
Do us a big favor if you need to post these?

cat rsnapshot2.conf | grep -v '^#' | grep -v '^$' >
rsnapshot2.conf.stripped

And send us the stripped output Do the same with the alternative
config files, and the differences will leap right out when comparing
the files.

In particular, "ranspshot_root", "logfile", and "lockfile" need to differ.

[quote]# LOCALHOST
#backup /etc/passwd localhost/
#backup /home/foo/My Documents/ localhost/
#backup /foo/bar/ localhost/ one_fs=1, rsync_short_args=-urltvpog
#backup_script /usr/local/bin/backup_pgsql.sh localhost/postgres/
# You must set linux_lvm_* parameters below before using lvm snapshots
#backup lvm://vg0/xen-home/ lvm-vg0/xen-home/
backup root < at > remote-client:/etc/ remote-client/ exclude=mtab,exclude=core
backup root < at > remote-client:/home/ remote-client/ exclude=mtab,exclude=core
backup root < at > remote-client:/usr/local/ remote-client/ exclude=mtab,exclude=core
[/quote]
And this part, of course, needs to differ. As I mentioned, this is why
I tend to use a common, shared rsnapshot.conf template that all
specific .conf files read, It also tends to allow me to have much
smaller, more legible .conf files with only the specific changes I
need.

[quote]That is the full config file. The other *.conf files are exactly the same except for the paths and destinations.
[/quote]
And that's the difference you need to verify. And if you didn't change
the 'lockfile' setting, that's probably your problem. The lockfile for
the the one backup is blocking the other backups.

[quote]
--------------------------------------------------------------

- exit-code? I don't know what that is...

+----------------------------------------------------------------------
|This was sent by barak < at > galileo-nav.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
[/quote]
------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 04, 2015 05:43AM
Hi Eingedi,

[quote]On June 4, 2015 at 2:02 PM Eingedi <rsnaphshot-forum < at > backupcentral.com>
wrote:

- The command I exucuted? Simply 'rsnapshot hourly' or
'/usr/bin/rsnapshot hourly'
[/quote]
Ok. If you call rsnapshot without the -c option, it will _always_ use
/etc/rsnapshot.conf. rsnapshot does _not_ care about the crontab. so if
you just call `rsnapshot hourly` on the command-line it will always use
/etc/rsnapshot.conf. You have to specify the conf-file every time.

[quote]with the crontab being :
[/quote]
- Where is this crontab located? Do you edit it with crontab -e or do you
edit a file in /etc/cron.*?
- Could you please get the following line to you crontab and check, if the
crontab is executed correctly?
* * * * * date > /tmp/crontabtest

[quote]0 8-20/4 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
0 21 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf daily
0 12 * * 6 /usr/bin/rsnapshot -c /etc/rsnapshot2.conf weekly
[/quote]
[quote]the full config file?
[/quote]
Thanks for the file. Is this your '/etc/rsnapshot'?

~ Bene

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 04, 2015 06:15AM
Hallo, Eingedi,

Du meintest am 04.06.15:

[quote]- The command I exucuted? Simply 'rsnapshot hourly' or
'/usr/bin/rsnapshot hourly' with the crontab being :
[/quote]
[quote]0 8-20/4 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf hourly
0 21 * * * /usr/bin/rsnapshot -c /etc/rsnapshot2.conf daily
0 12 * * 6 /usr/bin/rsnapshot -c /etc/rsnapshot2.conf weekly
[/quote]
The first of the 3 crontab lines should use the "rsnapshot2.conf" file
every 4 hours - ok.

The command "rsnapshot hourly" doesn't use any of the crontab lines, it
uses "/etc/rsnapshot.conf" as its (default) configuration file.

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 08, 2015 02:18AM
Hello guys,
thanks to your help I managed to make it work! Thank you very much.
How to copy to different directories?
June 08, 2015 04:46AM
Hi,

[quote]On June 8, 2015 at 11:18 AM Eingedi <rsnaphshot-forum < at > backupcentral.com>
wrote:
Hello guys,
thanks to your help I managed to make it work! Thank you very much.
[/quote]
Could you please share your solution? Others, finding the thread over
google appreciate to have a solution.

Mit freundlichen Grüßen,
Benedikt Heine

------------------------------------------------------------------------------
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
How to copy to different directories?
June 27, 2015 05:23PM
On 8 June 2015 at 02:18, Eingedi <rsnaphshot-forum < at > backupcentral.com> wrote:
[quote]Hello guys,
thanks to your help I managed to make it work! Thank you very much.
[/quote]

Just a reminder that it's good to share the information you came
across to get this working.

https://xkcd.com/979/

--
-------
inum: 883510009027723
sip: jungleboogie < at > sip2sip.info
xmpp: jungle-boogie < at > jit.si

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Sorry, only registered users may post in this forum.

Click here to login