rsnapshot should use rsync args from rsnapshot.conf when rotating backups

Bug #308981 reported by Sameer D. Sahasrabuddhe
2
Affects Status Importance Assigned to Milestone
rsnapshot (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: rsnapshot

Ubuntu Release: 8.04.1
rsnapshot: 1.2.9-1

I have specified the "-A" flag for rsync in order to preserve ACLs in the backups, as follows:
rsync_short_args -aA

When rsnapshot rotates backup, it does not use this flag, as seen from the log:
[17/Dec/2008:19:08:02] /usr/bin/rsnapshot daily: started
[17/Dec/2008:19:08:02] Setting locale to POSIX "C"
[17/Dec/2008:19:08:02] echo 16932 > /var/run/rsnapshot.pid
[17/Dec/2008:19:08:02] /bin/rm -rf /mnt/backup/daily.1/
[17/Dec/2008:19:08:26] native_cp_al("/mnt/backup/daily.0", "/mnt/backup/daily.1")
[17/Dec/2008:19:08:54] /usr/bin/rsync -a --delete --numeric-ids /mnt/backup/daily.0/ /mnt/backup/daily.1/

The flag is used correctly when creating the latest snapshot as seen in the next message:
[17/Dec/2008:19:08:57] /usr/bin/rsync -aA --delete --numeric-ids --relative --delete-excluded --exclude=.gvfs --exclude=/home/Stuff/vmware /home /mnt/backup/daily.0/localhost/

The result is that ACLs are preserved in the latest snapshot, that is daily.0 in my case. But the ACLs are missing from the earlier image, that is daily.1

It seems when rsnapshot calls rsync internally for rotating snapshots, it does not use the flags specified in the configuration file.

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.