Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I used a rsync in Ubuntu to backup my media and data (~60 GB) hard drive to an external hard drive. I used the following options "-avizP --delete --stats". After copying one hard drive to the other, I ran it again, and this time it should have copied exactly 0 files, correct? However, it proceeded to recopy the entire hard drive.
I have used these exact same options for simpler file systems, and it works perfectly. Can anyone offer any advice? Note that the original media and data file system was constructed in Windows, although I can't imagine this would matter as I have used a simpler Windows file system and it has worked perfectly. Does rsync just have problems with huge file systems (the one I am trying to backup is over 30000 files) rendering it totally useless for a practical backup system?!?
What filesystem are the partitions? You sure it worked the first time? No, it doesn't have problems with large numbers of files.
Both are FAT file systems. It seems to have problems with large nubmers of files because I can do the exact same thing with around 1000 files and it works fine. And yes, it did work the first time. It does succesfully copy the drive...it just has not idea how to update it, only how to start over again.
Found the problem. FAT32 is such an old and featureless filesystem, it doesn't play well with Unix files (it has no concept of permissions) or rsync. Try the following, from the man page:
Code:
BUGS
When transferring to FAT filesystems rsync may re-sync unmodified files. See the comments on the --modify-window option.
Code:
--modify-window
When comparing two timestamps, rsync treats the timestamps as being equal if they differ by no more than the modify-window value. This is normally 0 (for an exact match), but you may find it useful to set this to a larger value in some situations. In particular, when transferring to or from an MS Windows FAT filesystem (which represents times with a 2-second resolution), --modify-window=1 is useful (allowing times to differ by up to 1 second).
Last edited by AlucardZero; 04-04-2009 at 01:17 PM.
Found the problem. FAT32 is such an old and featureless filesystem, it doesn't play well with Unix files (it has no concept of permissions) or rsync. Try the following, from the man page:
Code:
BUGS
When transferring to FAT filesystems rsync may re-sync unmodified files. See the comments on the --modify-window option.
Code:
--modify-window
When comparing two timestamps, rsync treats the timestamps as being equal if they differ by no more than the modify-window value. This is normally 0 (for an exact match), but you may find it useful to set this to a larger value in some situations. In particular, when transferring to or from an MS Windows FAT filesystem (which represents times with a 2-second resolution), --modify-window=1 is useful (allowing times to differ by up to 1 second).
Ok, actually I was copying from an NTFS system to a FAT32 but I guessing your analysis still applies. I missed that info in the man page. Thanks for your help!
Ok, actually I was copying from an NTFS system to a FAT32 but I guessing your analysis still applies. I missed that info in the man page. Thanks for your help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.