PDA

View Full Version : Rsnapshot on FC5



pparks1
4th May 2006, 07:47 PM
There is currently a problem with the /bin/cp app in the coreutils-5.93 package with regards to rsnapshot. See this link for more information. http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=339845

Essentially, when rsnapshot tries to run, you receive the following error message:
ERROR: /bin/cp failed.
Perhaps this is not GNU cp? ERROR: Error! cp_al("/backup/daily.0/",
"/backup/daily.1/")

To resolve this error, open up the /usr/bin/rsnapshot script and look for this section;
It's near line 2500


if (0 == $test) {
$result = cp_al(
"$config_vars{'snapshot_root'}/$interval.0/",
"$config_vars{'snapshot_root'}/$interval.1/"

Remove the trailing slashes at the end of $interval.# so that section reads like this instead


if (0 == $test) {
$result = cp_al(
"$config_vars{'snapshot_root'}/$interval.0",
"$config_vars{'snapshot_root'}/$interval.1"