My Rsync script is broken! Pls Help.

Matt McCutchen matt at mattmccutchen.net
Wed Dec 3 13:35:53 GMT 2008


On Tue, 2008-12-02 at 19:49 -0800, likuidsilence wrote:
> Yeah I'm pretty sure I'm using the right command and error message..

The command you previously posted lacked trailing slashes on the source
and destination paths.  This one has them, which is consistent with the
errors you got.

> Anyhow,
> I ran my rsync command with strace like you suggested:
> 
> sudo strace -f -o /home/user/rsync.strace sudo rsync -rltODv --delete
> /home/user/NTFS/Win-Ubuntu/ /media/BackupDrive/ --modify-window=2
> 
> and it gave me these errors again! :-(
> 
> rsync: failed to set times on "/media/BackupDrive/.": Not a directory (20)
> rsync: failed to set times on "/media/BackupDrive/DataRecovery": Not a
> directory (20)
> rsync: failed to set times on "/media/BackupDrive/DataRecovery/Business
> Cards": Not a directory (20)
> rsync: failed to set times on "/media/BackupDrive/Downloads": Not a
> directory (20)

If those are the only errors you get, it would suggest that the NAS's
network filesystem won't let you set directory mtimes, which is weird.
You could use -O to skip setting those mtimes, or if you care about
them, look into accessing the NAS via rsync instead of the network
filesystem.

> and this is the output of my strace (not complete, since is a very huge
> list, but posted what I think is necessary enough =P ):

That only shows part of rsync's initialization.  The relevant portion
would show system calls involving "/media/BackupDrive", including the
utimes calls failing with ENOTDIR.  But you need not send a new strace
unless you want to check my diagnosis.

-- 
Matt



More information about the rsync mailing list