Discussion:
[rsnapshot-discuss] Check log
Gandalf Corvotempesta
2016-09-05 08:44:49 UTC
Permalink
Hi to all,
can someone check if the following log is correct ?
It's a slighty customized version of rsnapshot (the script is the
same, but I'm using a wrapper to call the sync+daily and not using
directlry the cron)

I have set "sync_first" and "link_dest" arguments.

As I can see, rsync is syncing the remote server to the local ".sync"
directory, but ".sync" doesn't exists as it's renamed by the daily
rotation:
"mv /var/backups/rsnapshot/myserver/.sync/
/var/backups/rsnapshot/myserver/daily.0/"

What I don't 100% understand is the "link-dest" argument to rsync.
What exactly happens with
"--link-dest=/var/backups/rsnapshot/myserver/daily.0/./" ?

Is the following log correct or am I missing something or backups ?


[05/Sep/2016:05:51:02] /usr/bin/rsnapshot -v -c
/etc/rsnapshot.d/hosts/myserver.conf sync: started
[05/Sep/2016:05:51:02] Setting locale to POSIX "C"
[05/Sep/2016:05:51:02] echo 8591 > /var/run/rsnapshot/myserver.pid
[05/Sep/2016:05:51:02] mkdir -m 0755 -p /var/backups/rsnapshot/myserver/.sync/
[05/Sep/2016:05:51:02] /usr/bin/rsync -a --delete --numeric-ids
--relative --delete-excluded --stats --exclude=var/backups/*
--exclude=tmp/* --exclude=proc/* --exclude=sys/* --exclude=media/*
--exclude=mnt/* --exclude=tmp/* --exclude=var/cache/*
--exclude=var/log/lastlog --exclude=var/log/rsync*
--exclude=var/lib/mlocate --exclude=var/lib/mysql/*
--exclude=var/lib/apt/lists/* --exclude=var/cache/apt/archives/*
--exclude=var/run/*
--password-file=/etc/rsnapshot.d/hosts/myserver.passwd
--link-dest=/var/backups/rsnapshot/myserver/daily.0/./
rsync://***@myserver/everything
/var/backups/rsnapshot/myserver/.sync/./
[05/Sep/2016:07:44:10] rsync succeeded
[05/Sep/2016:07:44:10] touch /var/backups/rsnapshot/myserver/.sync/
[05/Sep/2016:07:44:10] No directory to delete:
/var/backups/rsnapshot/myserver/_delete.8591
[05/Sep/2016:07:44:10] rm -f /var/run/rsnapshot/myserver.pid
[05/Sep/2016:07:44:11] /usr/bin/rsnapshot -v -c
/etc/rsnapshot.d/hosts/myserver.conf sync: completed successfully
[05/Sep/2016:07:44:12] /usr/bin/rsnapshot -v -c
/etc/rsnapshot.d/hosts/myserver.conf daily: started
[05/Sep/2016:07:44:12] Setting locale to POSIX "C"
[05/Sep/2016:07:44:12] echo 9056 > /var/run/rsnapshot/myserver.pid
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.14/
/var/backups/rsnapshot/myserver/_delete.9056/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.13/
/var/backups/rsnapshot/myserver/daily.14/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.12/
/var/backups/rsnapshot/myserver/daily.13/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.11/
/var/backups/rsnapshot/myserver/daily.12/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.10/
/var/backups/rsnapshot/myserver/daily.11/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.9/
/var/backups/rsnapshot/myserver/daily.10/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.8/
/var/backups/rsnapshot/myserver/daily.9/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.7/
/var/backups/rsnapshot/myserver/daily.8/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.6/
/var/backups/rsnapshot/myserver/daily.7/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.5/
/var/backups/rsnapshot/myserver/daily.6/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.4/
/var/backups/rsnapshot/myserver/daily.5/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.3/
/var/backups/rsnapshot/myserver/daily.4/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.2/
/var/backups/rsnapshot/myserver/daily.3/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.1/
/var/backups/rsnapshot/myserver/daily.2/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/daily.0/
/var/backups/rsnapshot/myserver/daily.1/
[05/Sep/2016:07:44:12] mv /var/backups/rsnapshot/myserver/.sync/
/var/backups/rsnapshot/myserver/daily.0/
[05/Sep/2016:07:44:12] rm -f /var/run/rsnapshot/myserver.pid
[05/Sep/2016:07:44:12] /bin/rm -rf /var/backups/rsnapshot/myserver/_delete.9056
[05/Sep/2016:08:13:37] No need to remove non-existent lock
/var/run/rsnapshot/myserver.pid
[05/Sep/2016:08:13:37] /usr/bin/rsnapshot -v -c
/etc/rsnapshot.d/hosts/myserver.conf daily: completed successfully

------------------------------------------------------------------------------
Loading...