All, I am trying to use a SOHO NAS to rsync my music dir to. Every time I run the command it copies the entire dir and files each time. I have read the FAQ and searched google to no luck at fixing this. The NAS is this product http://www.lacie.com/products/product.htm?pid=10593 the 400gig model I am using FreeBSD 5.4 with the latest port build and I run the command below to try and accomplish what I need. But what I have done since the NAS is running smbfs I have simply mounted this drive with mount_smbfs to /musicbackup/. As you can see below it copies every file each time. Below is the first time I ran the command and then I deleted some of the folders off of the backup and ran it again for testing just to see if it would sync just the missing but it started copying everything over. I know it is not the rsync build and something with the NAS I believe because if I sync to my SuSE10 Desktop it works as it should, but I am at a lost and was hoping someone here might be able to help me. Thank you 1st Time Run skywalker# rsync -av --times --progress --update /music/Reggae/ /musicbackup/ building file list ... 67 files to consider ./ Damon Marly/ Damon Marly/01 - Confrontation.mp3 7816569 100% 2.48MB/s 0:00:02 (1, 9.0% of 67) sent 258464191 bytes received 1094 bytes 2199704.55 bytes/sec total size is 305269148 speedup is 1.18 2nd Time Run skywalker# rsync -av --times --progress --update /music/Reggae/ /musicbackup/ building file list ... 67 files to consider ./ Damon Marly/ Damon Marly/01 - Confrontation.mp3 7816569 100% 2.48MB/s 0:00:02 (1, 9.0% of 67) sent 258464191 bytes received 1094 bytes 2199704.55 bytes/sec total size is 305269148 speedup is 1.18 -- http://www.digitalrage.org/ The Information Technology News Center -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
On Thu, 29 Dec 2005, Savage, Elijah <elijah_savage@reyrey.com> wrote:> > I am trying to use a SOHO NAS to rsync my music dir to. Every time I run > the command it copies the entire dir and files each time....> I am using FreeBSD 5.4 with the latest port build and I run the command > below to try and accomplish what I need. But what I have done since the > NAS is running smbfs I have simply mounted this drive with mount_smbfs > to /musicbackup/. As you can see below it copies every file each time.If you are copying from a *nix filesystem to a Windows filesystem (which is implied by your use of mountsmbfs) then the timestamps may not be matching since Windows uses a 2-second granularity. Try using the ''stat'' command on a file in the source and destination: stat "/music/Reggae/Damon Marly/01 - Confrontation.mp3" stat "/musicbackup/Damon Marly/01 - Confrontation.mp3" The "Modify" times should be the same, down to the second. If they differ by one second, use --modify-window=1 and that will allow rsync to match the timestamps. (Wayne - the "copies every file" entry in the FAQ should also mention this problem with Windows timestamps. Even though it may not be "every file", it may seem like it...) John
John, Thank you for the reply but this box actually shows this runs linux and a version of samba, and the drive is running the ext3 file system but you have given me great info and I am getting ready to try it right now. -----Original Message----- From: John Van Essen [mailto:vanes002@umn.edu] Sent: Thursday, December 29, 2005 2:14 PM To: Savage, Elijah; rsync@lists.samba.org Subject: Re: rsync to a SOHO NAS copies files everytime On Thu, 29 Dec 2005, Savage, Elijah <elijah_savage@reyrey.com> wrote:> > I am trying to use a SOHO NAS to rsync my music dir to. Every time Irun> the command it copies the entire dir and files each time....> I am using FreeBSD 5.4 with the latest port build and I run thecommand> below to try and accomplish what I need. But what I have done sincethe> NAS is running smbfs I have simply mounted this drive with mount_smbfs > to /musicbackup/. As you can see below it copies every file each time.If you are copying from a *nix filesystem to a Windows filesystem (which is implied by your use of mountsmbfs) then the timestamps may not be matching since Windows uses a 2-second granularity. Try using the ''stat'' command on a file in the source and destination: stat "/music/Reggae/Damon Marly/01 - Confrontation.mp3" stat "/musicbackup/Damon Marly/01 - Confrontation.mp3" The "Modify" times should be the same, down to the second. If they differ by one second, use --modify-window=1 and that will allow rsync to match the timestamps. (Wayne - the "copies every file" entry in the FAQ should also mention this problem with Windows timestamps. Even though it may not be "every file", it may seem like it...) John
They are surely off like you indicated, but I get this when I try to sync the times. I thought this may be some permissions error on the mount point so I chmod 777 on the backup dir but that did not fix anything. 67 files to consider ./ rsync: failed to set times on "/musicbackup/.": Bad file descriptor (9) stat /music/Reggae/Damon\ Marly/01\ -\ Confrontation.mp3 49869672 7816569 "Dec 29 10:49:53 2005" "Sep 9 22:21:57 2005" "Dec 17 08:04:24 2005" "Sep 9 22:21:57 2005" 16384 15328 0 /music/Reggae/Damon Marly/01 - Confrontation.mp3 stat /musicbackup/Damon\ Marly/01\ -\ Confrontation.mp3 4294967295 7816569 "Sep 9 22:21:56 2005" "Sep 9 22:21:56 2005" "Sep 9 22:21:56 2005" "Jul 5 11:30:08 1937" 16644 15266 0 /musicbackup/Damon Marly/01 - Confrontation.mp3 -----Original Message----- From: John Van Essen [mailto:vanes002@umn.edu] Sent: Thursday, December 29, 2005 2:14 PM To: Savage, Elijah; rsync@lists.samba.org Subject: Re: rsync to a SOHO NAS copies files everytime On Thu, 29 Dec 2005, Savage, Elijah <elijah_savage@reyrey.com> wrote:> > I am trying to use a SOHO NAS to rsync my music dir to. Every time Irun> the command it copies the entire dir and files each time....> I am using FreeBSD 5.4 with the latest port build and I run thecommand> below to try and accomplish what I need. But what I have done sincethe> NAS is running smbfs I have simply mounted this drive with mount_smbfs > to /musicbackup/. As you can see below it copies every file each time.If you are copying from a *nix filesystem to a Windows filesystem (which is implied by your use of mountsmbfs) then the timestamps may not be matching since Windows uses a 2-second granularity. Try using the ''stat'' command on a file in the source and destination: stat "/music/Reggae/Damon Marly/01 - Confrontation.mp3" stat "/musicbackup/Damon Marly/01 - Confrontation.mp3" The "Modify" times should be the same, down to the second. If they differ by one second, use --modify-window=1 and that will allow rsync to match the timestamps. (Wayne - the "copies every file" entry in the FAQ should also mention this problem with Windows timestamps. Even though it may not be "every file", it may seem like it...) John
I realized I did not post the entire error. building file list ... 67 files to consider ./ rsync: failed to set times on "/musicbackup/.": Operation not permitted (1) Damon Marly/ rsync: failed to set times on "/musicbackup/.": Operation not permitted (1) sent 3176 bytes received 422 bytes 2398.67 bytes/sec total size is 305269148 speedup is 84844.12 rsync error: some files could not be transferred (code 23) at main.c(791) -----Original Message----- From: John Van Essen [mailto:vanes002@umn.edu] Sent: Thursday, December 29, 2005 2:14 PM To: Savage, Elijah; rsync@lists.samba.org Subject: Re: rsync to a SOHO NAS copies files everytime On Thu, 29 Dec 2005, Savage, Elijah <elijah_savage@reyrey.com> wrote:> > I am trying to use a SOHO NAS to rsync my music dir to. Every time Irun> the command it copies the entire dir and files each time....> I am using FreeBSD 5.4 with the latest port build and I run thecommand> below to try and accomplish what I need. But what I have done sincethe> NAS is running smbfs I have simply mounted this drive with mount_smbfs > to /musicbackup/. As you can see below it copies every file each time.If you are copying from a *nix filesystem to a Windows filesystem (which is implied by your use of mountsmbfs) then the timestamps may not be matching since Windows uses a 2-second granularity. Try using the ''stat'' command on a file in the source and destination: stat "/music/Reggae/Damon Marly/01 - Confrontation.mp3" stat "/musicbackup/Damon Marly/01 - Confrontation.mp3" The "Modify" times should be the same, down to the second. If they differ by one second, use --modify-window=1 and that will allow rsync to match the timestamps. (Wayne - the "copies every file" entry in the FAQ should also mention this problem with Windows timestamps. Even though it may not be "every file", it may seem like it...) John
Though I am getting the error below it seems to all work. I went back and deleted some files and it only copied those files over but still gives me the errors and the stat command shows the exact times now. But it is confusing to still be getting those errors about not syncing times. John thank you for your help in this matter and I also realized I just top posted this whole thing it has been a longer week than normal for some strange reason, I will make sure on future post I do it RIGHT. -----Original Message----- From: rsync-bounces+elijah.savage=reyrey.com@lists.samba.org [mailto:rsync-bounces+elijah.savage=reyrey.com@lists.samba.org] On Behalf Of Savage, Elijah Sent: Thursday, December 29, 2005 2:55 PM To: rsync@lists.samba.org Subject: RE: rsync to a SOHO NAS copies files everytime I realized I did not post the entire error. building file list ... 67 files to consider ./ rsync: failed to set times on "/musicbackup/.": Operation not permitted (1) Damon Marly/ rsync: failed to set times on "/musicbackup/.": Operation not permitted (1) sent 3176 bytes received 422 bytes 2398.67 bytes/sec total size is 305269148 speedup is 84844.12 rsync error: some files could not be transferred (code 23) at main.c(791) -----Original Message----- From: John Van Essen [mailto:vanes002@umn.edu] Sent: Thursday, December 29, 2005 2:14 PM To: Savage, Elijah; rsync@lists.samba.org Subject: Re: rsync to a SOHO NAS copies files everytime On Thu, 29 Dec 2005, Savage, Elijah <elijah_savage@reyrey.com> wrote:> > I am trying to use a SOHO NAS to rsync my music dir to. Every time Irun> the command it copies the entire dir and files each time....> I am using FreeBSD 5.4 with the latest port build and I run thecommand> below to try and accomplish what I need. But what I have done sincethe> NAS is running smbfs I have simply mounted this drive with mount_smbfs > to /musicbackup/. As you can see below it copies every file each time.If you are copying from a *nix filesystem to a Windows filesystem (which is implied by your use of mountsmbfs) then the timestamps may not be matching since Windows uses a 2-second granularity. Try using the ''stat'' command on a file in the source and destination: stat "/music/Reggae/Damon Marly/01 - Confrontation.mp3" stat "/musicbackup/Damon Marly/01 - Confrontation.mp3" The "Modify" times should be the same, down to the second. If they differ by one second, use --modify-window=1 and that will allow rsync to match the timestamps. (Wayne - the "copies every file" entry in the FAQ should also mention this problem with Windows timestamps. Even though it may not be "every file", it may seem like it...) John -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html