Hello everyone, First post here :-D I been looking for answers for the past 2 days but I can't find anything that will solve my problem. Hopefully this forum will be the end of my search! I've had an Rsync script that I wrote myself working for the past several months. Not too long ago I had to reformat and Installed a fresh copy of Ubuntu 8.10 (Intrepid) (Used ext3 this time around..I used to have ext2..but don't think that's the problem) I tried running my script to backup my files to a remote NAS on my network but I keep getting these annoying rsync failure messages on my log. rsync: failed to set times on "/home/user/BackupDrive" : Not a directory (20) I was getting a bunch of these errors. So I tried the gui version of rsync (grsync) and I get the following error rsync: failed to set times on "/home/user/BackupDrive " Operation not permitted (1) Files do copy over by the way but I just don't like to see "failed" messages on my logs.. Can someone Please guide me in the right direction here as I would hate to quit using rsync. Help is much appreciated. -- View this message in context: http://www.nabble.com/My-Rsync-script-is-broken%21-Pls-Help.-tp20743936p20743936.html Sent from the Samba - rsync mailing list archive at Nabble.com.
On Fri, 2008-11-28 at 20:37 -0800, likuidsilence wrote:> I've had an Rsync script that I wrote myself working for the past several > months. Not too long ago I had to reformat and Installed a fresh copy of > Ubuntu 8.10 (Intrepid) (Used ext3 this time around..I used to have ext2..but > don't think that's the problem) I tried running my script to backup my files > to a remote NAS on my network but I keep getting these annoying rsync > failure messages on my log. > > rsync: failed to set times on "/home/user/BackupDrive" : Not a directory > (20) > > I was getting a bunch of these errors. So I tried the gui version of rsync > (grsync) > and I get the following error > > rsync: failed to set times on "/home/user/BackupDrive " Operation not > permitted (1) > > Files do copy over by the way but I just don't like to see "failed" messages > on my logs..Please post your rsync command and the output of "ls -la /home/user" so we can see what is going on. Matt
On Wed, 2008-12-03 at 17:33 -0800, likuidsilence wrote:> I just found out smbfs has been deprecated for a long time now.. geez =( so I > tried mounting the drive using cifs but no luck at all.. i still get those > damn messages!! :confused: > anyway, I was thinking of attaching my strace file but is 256mb in size! I > did see alot of "ENOENT" messages though (pasted below).. Thanks for your > help.> 6903 lstat64(".", {st_mode=S_IFDIR|0777, st_size=0, ...}) = 0 > 6904 select(1, [0], [], NULL, {60, 0} <unfinished ...> > 6903 time(NULL) = 1228275069 > 6903 utimes(".", {1228275069, 0}) = -1 ENOTDIR (Not a directory)This is what I wanted to see: the destination filesystem is not letting rsync set directory mtimes. There is nothing rsync can do about this. If you want to preserve directory mtimes, you'll need to access the NAS in a different way, preferably by rsync over ssh or an rsync daemon. If you don't care about directory mtimes, use -O to avoid the error messages. Matt