rsnapshot fails to run after Breezy -> Dapper transition

Bug #33155 reported by Raphaël Berbain
4
Affects Status Importance Assigned to Milestone
rsnapshot (Ubuntu)
Fix Released
Medium
Andrew Mitchell

Bug Description

I had a working rsnapshot setup running on a Breezy box. After dist-upgrading to Dapper, rsnapshot runs began to fail with this kind of messages:

/bin/cp: target `/media/storage/rsnapshot/daily.1/' is not a directory: No such file or directory
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/bin/rsnapshot daily
----------------------------------------------------------------------------
ERROR: /bin/cp failed. Perhaps this is not GNU cp?
ERROR: Error! cp_al("/media/storage/rsnapshot/daily.0/", "/media/storage/rsnapshot/daily.1/")

Revision history for this message
Raphaël Berbain (raphael-berbain) wrote : Destination path trailing slash makes rsnapshot's "cp -al /src/dir/ /dest/dir/" call fail.

The patch tries to be un-intrusive. A glance at the rsnapshot source seems to indicate that the generic case is to add a trailing slash to paths to directories. Maybe a review of paths trailing slashes is in order.

No idea if this is originally a problem with cp or rsnapshot and precisely what distribution upgrade change made this situation appear, since I dsicovered it with a Breezy -> Dapper dist-upgrade from about a week ago.

Also don't know if the problem is present upstream.

Revision history for this message
Marc Nozell (marc-nozell) wrote :

I've run into the same problem since upgrading also.

ubuntulaptop:/EXTERNAL# time rsnapshot hourly

real 70m48.991s
user 11m25.703s
sys 6m29.745s
ubuntulaptop:/EXTERNAL# time rsnapshot hourly
/bin/cp: target `/EXTERNAL/rsnapshot/hourly.1/' is not a directory: No such file or directory
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/bin/rsnapshot hourly
----------------------------------------------------------------------------
ERROR: /bin/cp failed. Perhaps this is not GNU cp?
ERROR: Error! cp_al("/EXTERNAL/rsnapshot/hourly.0/", "/EXTERNAL/rsnapshot/hourly.1/")

real 0m5.187s
user 0m0.052s
sys 0m0.042s
ubuntulaptop:/EXTERNAL# df /EXTERNAL/rsnapshot/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 131595236 29545836 95364756 24% /EXTERNAL
ubuntulaptop:/EXTERNAL# which cp
/bin/cp
ubuntulaptop:/EXTERNAL# cp --version
cp (GNU coreutils) 5.93
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.
ubuntulaptop:/EXTERNAL#

I'll try the patch.

-marc

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

Will grab 1.2.1-1.1 from Debian, thanks

Changed in rsnapshot:
assignee: nobody → ajmitch
status: Unconfirmed → Confirmed
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

1.2.1-1.1 uploaded with fix included from debian

Changed in rsnapshot:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.