Re: Backup and renaming old file that became directory

2006-08-01 Thread Matt McCutchen
Rsync doesn't seem to have very good checking for cases in which backing up a file fails. Callers of keep_backup expect its return code to indicate whether the backup succeeded (1) or failed (0), but it returns 1 even if one of the subroutines it uses fails. It should be easy to check the

Re: Backup and renaming old file that became directory

2006-07-14 Thread Matt McCutchen
On 7/12/06, Yan Morin [EMAIL PROTECTED] wrote: rsync: keep_backup failed: /mnt/backup/foo/home/bar - /mnt/backup/foo/old/home/bar: Is a directory (21) [...] Oh, you're right! I guess I didn't set up the scenario correctly the first time, because now I get a messy error similar to yours. I

Backup and renaming old file that became directory

2006-07-11 Thread Yan Morin
Hi, i've got a problem with rsync right now and I use the command: rsync -abqz --delete --backup-dir /mnt/backup/foo/old /home /mnt/backup/foo The problem is that in /mnt/backup/foo there is a old file with the name bar (by example). In /home and /mnt/backup/foo/old, I have a directory with

Re: Backup and renaming old file that became directory

2006-07-11 Thread Matt McCutchen
I tried your scenario on rsync 2.6.8. Rsync successfully overwrite the destination directory with the source file and didn't change the backup dir. How exactly is rsync failing for you? Error message? Matt -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync