SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Problem when running rsnapshot daily
Author Message
Post Problem when running rsnapshot daily 
On 02/20/2011 05:31 PM, David Keegel wrote:
On Sun, Feb 20, 2011 at 03:45:46PM +0800, lukshuntim < at > gmail.com wrote:

# rsnapshot -t daily
/mnt/bkup/hourly.1 not present (yet), nothing to copy

If you see this message, it means you need to keep running
"rsnapshot hourly" until there are a full set of hourly backups,
before the rsnapshot daily will do anything.


David,

Thanks! I'll wait and see if rsnapshot daily works as I have it
scheduled at 2:00 am everyday. I'll report my findings later.

What I can't understand is why "rsnapshot -t hourly" showed invocation
of the cmd_preexec script explicitly while "rsnapshot -t daily" (or for
that matter weekly and monthly) doesn't.

Thanks again for your quick reply,
ST
--




------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Problem when running rsnapshot daily 
On 02/20/2011 05:31 PM, David Keegel wrote:
On Sun, Feb 20, 2011 at 03:45:46PM +0800, lukshuntim < at > gmail.com wrote:

# rsnapshot -t daily
/mnt/bkup/hourly.1 not present (yet), nothing to copy

If you see this message, it means you need to keep running
"rsnapshot hourly" until there are a full set of hourly backups,
before the rsnapshot daily will do anything.


Further information after hourly.1 is created successfully by "rsnapshot
hourly". "rsnapshot daily" does not run successfully.

Here's the test I've just done. The real log showed the same behaviour.

<log>
~/rsnapshot# ls -al /mnt/bkup
total 8
drwxr-xr-x 2 root root 4096 Sep 2 12:59 .
drwxr-xr-x 14 root root 4096 Sep 3 11:29 ..

~/rsnapshot# rsnapshot -t daily
echo 11367 > /var/run/rsnapshot.pid
/mnt/bkup/hourly.1 not present (yet), nothing to copy

~/rsnapshot# /usr/local/bin/rsnapshot-mount-bkup.sh

~/rsnapshot# ls -al /mnt/bkup
total 16
drwxr-xr-x 4 root root 4096 Feb 21 13:42 .
drwxr-xr-x 14 root root 4096 Sep 3 11:29 ..
drwxr-xr-x 3 root root 4096 Feb 21 08:57 hourly.0
drwxr-xr-x 3 root root 4096 Feb 20 20:43 hourly.1

~/rsnapshot# rsnapshot -t daily
echo 11372 > /var/run/rsnapshot.pid
mv /mnt/bkup/hourly.1/ /mnt/bkup/daily.0/

~/rsnapshot# /usr/local/bin/rsnapshot-umount-bkup.sh

~/rsnapshot# rsnapshot -t daily
echo 11377 > /var/run/rsnapshot.pid
/mnt/bkup/hourly.1 not present (yet), nothing to copy
</log>

I have these options in my rsnapshot.conf

no_create_root 1
cmd_preexec /usr/local/bin/rsnapshot-mount-bkup.sh
cmd_postexec /usr/local/bin/rsnapshot-umount-bkup.sh

The conclusion seems to be that "rsnapshot daily" is *not* using the
"cmd_preexec" command at all.

Further search turns up these related debian bug reports (and links
pointing to the rsnapshot bug tracker in sourceforge).
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493176
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493177

Regards,
ST
--

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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