My Rsync script is broken! Pls Help.
Matt McCutchen
matt at mattmccutchen.net
Tue Dec 2 03:25:44 GMT 2008
On Sat, 2008-11-29 at 13:54 -0800, likuidsilence wrote:
> Here is my rsync command:
>
> sudo rsync -rltODv --delete /home/user/NTFS/Win-Ubuntu
> /home/user/BackupDrive --modify-window=2 > /home/user/rsync.last.log
>
>
> and here is the output for "ls -la /home/user":
>
> [...]
> drwxr-xr-x 2 user user 4096 2008-11-27 23:39 BackupDrive
> [...]
> Bugzilla from matt at mattmccutchen.net wrote:
> >
> > On Fri, 2008-11-28 at 20:37 -0800, likuidsilence wrote:
> >> rsync: failed to set times on "/home/user/BackupDrive" : Not a directory
> >> (20)
I don't see how your command could result in the "Not a directory" error
because /home/user/BackupDrive *is* a directory and, furthermore, the
command shouldn't be processing the destination directory at all because
your source, lacking a trailing slash, should go to
/home/user/BackupDrive/Win-Ubuntu .
Are you sure you sent the right command and error message? If so, or
even if not, re-run rsync under strace so we can see how it is failing:
sudo strace -f -o /home/user/rsync.strace rsync -rltODv ...
Matt
More information about the rsync
mailing list