Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm trying to back up a directory to a fat32 usb external hard drive. My rsync keeps throwing errors that it can't do a chown on any of the files on the fat32 usb drive. I just want it to copy the files, no permissions since fat32 doesn't allow for permissions. What rsync switches should I use? I'm using r a v now. Thanks!
At a glance, I'd suggest removing the -a argument. That's what's probably causing the errors. As you noted, FAT doesn't allow for permissions such as ownership etc.., so you need to copy the stuff while IGNORING the permissions.
If I don't use -t will it change the modified time to right now, then make subsequent rsyncs take longer because it thinks they're different files?
Sounds reasonable, but I personally am not certain HOW rsync determines whether a file is the same or not. mtime seems a good candidate though.
Something you might consider for all this, especially for in the event that you wish to RESTORE any of this backup at some time to its original location and state more easily, would be to reformat your FAT drive to something more befitting the sort of backup that you are sending to it.
Is there anything preventing you from reformatting the backup drive to an Ext* filesystem, or some filesystem that supports the permissions required?
Well I have it running now in verbose mode, and it keeps throwing a bunch of mkstemp failed no such file or directory (2) and mkdir failed no space left on drive (28).
I know before I started the rsync there was a hundreds of GBs of space on the external drive, and my data set i'm trying to copy is around 200GB, so there's plenty of room. Any idea what these errors are about? Or should I maybe open a new post with a new subject?
Actually for the mkstemp errors, its showing the real filenames with a . then random letters after it, assuming rsync writes a temp file with the extra stuff at the end, then removed the extra stuff after it writes successfully.