I'm using the rsnapshot that was ipkg'd for the QNAP intel platform.
It's called 1.3.1-1 by the packagers, rsnapshot-program.pl is v 1.398.
when running with the native cp (cmd_cp undefined), it would fail with
the following.
native_cp_al("/share/MD0_DATA/rsnapshot/.sync", \
"/share/MD0_DATA/rsnapshot/hourly.0")
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/opt/bin/rsnapshot hourly
----------------------------------------------------------------------------
ERROR: rsync_cleanup_after_native_cp_al() only works on directories
ERROR: Error! cp_al("/share/MD0_DATA/rsnapshot/.sync",
"/share/MD0_DATA/rsnapshot/hourly.0")
It seems that when rotate_lowest_snapshots was called, it calls
display_cp_al with trailing slashes, but calls cp_al without (around
line 3233).
This causes problems when native_cp_al is used in cp_al, because the
latter step is rsync_cleanup_after_native_cp_al. That procedure has
check that specifically looks for trailing slashes else it prints the
error above.
A quick fix was to append the trailing slashes on the call to cp_al.
However, someone with more familiarity with the code should probably
review the use and tests for trailing slashes and make sure that on the
whole it is consistent.
Thanks for your tool, I'm newly looking at it to replace some homegrown
scripts that we've been using to do similar functionality.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
