SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rsnapshot does not backup
Author Message
Post rsnapshot does not backup 
Hi there,

I have run rsnapshot successfully as a regular backup on another
server (Debian 6) for quite some time. I set up a failover server, and
also copied over the /etc/rsnapshot.conf because the directory structure
and backup requirements are the same.
rsnapshot is enabled in the root cron. It does run without any errors,
but apart from the initial snapshop back on the 14th Oct, it has never
actually backed anything else up! Very strange:

Does anyone know what might have inadvertently caused this?

*config_version 1.2
snapshot_root /var/cache/rsnapshot/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
cmd_du /usr/bin/du
interval hourly 2
interval daily 4
interval weekly 4
interval monthly 3
verbose 2
loglevel 3
logfile /var/log/rsnapshot.log
lockfile /var/run/rsnapshot.pid
exclude *.exe
link_dest 0
sync_first 1
backup /var/log/ example.com/
backup /var/spool/cron/ example.com/
backup /etc/ example.com/*

---

Here are the different files after I run a rsnapshop hourly:
# rsnapshot -v hourly
echo 5394 > /var/run/rsnapshot.pid
/bin/rm -rf /var/cache/rsnapshot/hourly.1/
mv /var/cache/rsnapshot/hourly.0/ /var/cache/rsnapshot/hourly.1/
/bin/cp -al /var/cache/rsnapshot/.sync /var/cache/rsnapshot/hourly.0
rm -f /var/run/rsnapshot.pid


-rw-r--r-- 1 root root 9.4K Nov 1 15:26 /etc/apache2/apache2.conf
-rw-r--r-- 10 root root 8.2K Oct 12 12:31
/var/cache/rsnapshot/hourly.0/example.com/etc/apache2/apache2.con

Where did I go wrong?

Regads.

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot does not backup 
On 11/01/2011 03:39 PM, JKL wrote:
Hi there,

I have run rsnapshot successfully as a regular backup on another
server (Debian 6) for quite some time. I set up a failover server, and
also copied over the /etc/rsnapshot.conf because the directory structure
and backup requirements are the same.
rsnapshot is enabled in the root cron. It does run without any errors,
but apart from the initial snapshop back on the 14th Oct, it has never
actually backed anything else up! Very strange:

Does anyone know what might have inadvertently caused this?

*config_version 1.2
snapshot_root /var/cache/rsnapshot/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
cmd_du /usr/bin/du
interval hourly 2
interval daily 4
interval weekly 4
interval monthly 3
verbose 2
loglevel 3
logfile /var/log/rsnapshot.log
lockfile /var/run/rsnapshot.pid
exclude *.exe
link_dest 0
sync_first 1
backup /var/log/ example.com/
backup /var/spool/cron/ example.com/
backup /etc/ example.com/*

---

Here are the different files after I run a rsnapshop hourly:
# rsnapshot -v hourly
echo 5394 > /var/run/rsnapshot.pid
/bin/rm -rf /var/cache/rsnapshot/hourly.1/
mv /var/cache/rsnapshot/hourly.0/ /var/cache/rsnapshot/hourly.1/
/bin/cp -al /var/cache/rsnapshot/.sync /var/cache/rsnapshot/hourly.0
rm -f /var/run/rsnapshot.pid


-rw-r--r-- 1 root root 9.4K Nov 1 15:26 /etc/apache2/apache2.conf
-rw-r--r-- 10 root root 8.2K Oct 12 12:31
/var/cache/rsnapshot/hourly.0/example.com/etc/apache2/apache2.con

Where did I go wrong?

Regads.


PS. The cron is running like this, in case someone asks:# rsnapshot backups
0 */3 * * * /usr/bin/rsnapshot hourly
0 4 * * * ionice -c 3 /usr/bin/rsnapshot daily
0 5 * * 1 ionice -c 3 /usr/bin/rsnapshot weekly
30 8 1 * * ionice -c 3 /usr/bin/rsnapshot monthly



------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot does not backup 
try changing sync_first to 0
someone les will be able to explain why it (may) work


On 01/11/11 15:22, JKL wrote:
On 11/01/2011 03:39 PM, JKL wrote:
Hi there,

I have run rsnapshot successfully as a regular backup on another
server (Debian 6) for quite some time. I set up a failover server, and
also copied over the /etc/rsnapshot.conf because the directory structure
and backup requirements are the same.
rsnapshot is enabled in the root cron. It does run without any errors,
but apart from the initial snapshop back on the 14th Oct, it has never
actually backed anything else up! Very strange:

Does anyone know what might have inadvertently caused this?

*config_version 1.2
snapshot_root /var/cache/rsnapshot/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /usr/bin/logger
cmd_du /usr/bin/du
interval hourly 2
interval daily 4
interval weekly 4
interval monthly 3
verbose 2
loglevel 3
logfile /var/log/rsnapshot.log
lockfile /var/run/rsnapshot.pid
exclude *.exe
link_dest 0
sync_first 1
backup /var/log/ example.com/
backup /var/spool/cron/ example.com/
backup /etc/ example.com/*

---

Here are the different files after I run a rsnapshop hourly:
# rsnapshot -v hourly
echo 5394> /var/run/rsnapshot.pid
/bin/rm -rf /var/cache/rsnapshot/hourly.1/
mv /var/cache/rsnapshot/hourly.0/ /var/cache/rsnapshot/hourly.1/
/bin/cp -al /var/cache/rsnapshot/.sync /var/cache/rsnapshot/hourly.0
rm -f /var/run/rsnapshot.pid


-rw-r--r-- 1 root root 9.4K Nov 1 15:26 /etc/apache2/apache2.conf
-rw-r--r-- 10 root root 8.2K Oct 12 12:31
/var/cache/rsnapshot/hourly.0/example.com/etc/apache2/apache2.con

Where did I go wrong?

Regads.

PS. The cron is running like this, in case someone asks:# rsnapshot backups
0 */3 * * * /usr/bin/rsnapshot hourly
0 4 * * * ionice -c 3 /usr/bin/rsnapshot daily
0 5 * * 1 ionice -c 3 /usr/bin/rsnapshot weekly
30 8 1 * * ionice -c 3 /usr/bin/rsnapshot monthly



------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save$700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot does not backup 
JKL, 01.11.2011 15:39:
Hi there,

I have run rsnapshot successfully as a regular backup on another
server (Debian 6) for quite some time. I set up a failover server, and
also copied over the /etc/rsnapshot.conf because the directory structure
and backup requirements are the same.
rsnapshot is enabled in the root cron. It does run without any errors,
but apart from the initial snapshop back on the 14th Oct, it has never
actually backed anything else up! Very strange:

Does anyone know what might have inadvertently caused this?


Hi.

As you know rsnapshot is basically a wrapper around rsync with smart
rotation logic (and many many nice extra features). You should first
find out if something is wrong with either the rsync-part or the
rotation logic part of rsnapshot.
You can look at the log file and manually repeat the command line steps.
Then you will see at which point things behave unexpected.

Also I have noticed that you are using the sync-first feature. Remember
that a backup then actually splits in two jobs for cron:
1. sync (rsnapshot is calling rsync here and gets new data)
2. rotation of backup data (hourly, daily etc.)

Clemens

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot does not backup 
JKL, 01.11.2011 16:22:

On 11/01/2011 03:39 PM, JKL wrote:
Hi there,

I have run rsnapshot successfully as a regular backup on another
server (Debian 6) for quite some time. I set up a failover server, and
also copied over the /etc/rsnapshot.conf because the directory structure
and backup requirements are the same.
rsnapshot is enabled in the root cron. It does run without any errors,
but apart from the initial snapshop back on the 14th Oct, it has never
actually backed anything else up! Very strange:

PS. The cron is running like this, in case someone asks:# rsnapshot backups
0 */3 * * * /usr/bin/rsnapshot hourly
0 4 * * * ionice -c 3 /usr/bin/rsnapshot daily
0 5 * * 1 ionice -c 3 /usr/bin/rsnapshot weekly
30 8 1 * * ionice -c 3 /usr/bin/rsnapshot monthly


Where is the command for "rsnapshot sync"?

You are using the sync-first mode! You need this to get the new data.

Clemens

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot does not backup 
On 11/01/2011 04:35 PM, Clemens Feige wrote:
JKL, 01.11.2011 16:22:
On 11/01/2011 03:39 PM, JKL wrote:
Hi there,

I have run rsnapshot successfully as a regular backup on another
server (Debian 6) for quite some time. I set up a failover server, and
also copied over the /etc/rsnapshot.conf because the directory structure
and backup requirements are the same.
rsnapshot is enabled in the root cron. It does run without any errors,
but apart from the initial snapshop back on the 14th Oct, it has never
actually backed anything else up! Very strange:
PS. The cron is running like this, in case someone asks:# rsnapshot backups
0 */3 * * * /usr/bin/rsnapshot hourly
0 4 * * * ionice -c 3 /usr/bin/rsnapshot daily
0 5 * * 1 ionice -c 3 /usr/bin/rsnapshot weekly
30 8 1 * * ionice -c 3 /usr/bin/rsnapshot monthly

Where is the command for "rsnapshot sync"?

You are using the sync-first mode! You need this to get the new data.

Clemens

Thank-you Paul and Clemens for pointing out the sync bit. I remember
enabling this, but did not realise that I had to call this as well as
the hourly/weekly etc.,

I just ran "rsnapshop sync" and behold there is something recent in
/var/cache/rsnapshot/.sync/

How often should sync be called from the cron. I suppose it should be
called before the hourly:
rsnapshot sync && rsnapshot hourly

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot does not backup 
On Tue, 1 Nov 2011, JKL wrote:

How often should sync be called from the cron. I suppose it should be
called before the hourly:
rsnapshot sync && rsnapshot hourly

Correct. The "rsnapshot sync" operation will perform the actual
backup (=rsync) to a temporary ".sync" directory which will be
renamed to "hourly.0" by "rsnapshot hourly". The other operations
except "sync" will just rename and remove directories according to
your settings. Also remember that "hourly", "daily" etc. are just
textual labels with no further meaning (you create the meaning
yourself by having a corresponding schedule).

--
Janne Snabb / EPIPE Communications
snabb < at > epipe.com - http://epipe.com/


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB