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 use rsync to backup some of my files to an external (USB) harddisk. As the external harddisk is formatted using VFAT, doing chown on the copied files would fail.
How then can i stop rsync from doing a chown after copying each file. I already do not have -o or -g set, but still get error messages like these during rsync:
Code:
rsync: chown "/media/usbdisk-1/edwin11/windows_resources/Appz/Programming/Python 2.4.1" failed: Operation not permitted (1)
i must add, though, that its just a minor inconvenience as all the files still seem correctly backed up (i hope!).
It's the -a option to rsync that's causing the problem. That means --archive which tries to preserve permissions, ownerships, group, symlinks, etc. ... things that the destination VFAT filesystem doesn't understand.
Try "rsync -rtL" instead.
FYI, running "man rsync" shows that -a is just shorthand for -rlptgoD. Look up each option and you'll see that VFAT will have problems with the -lpgoD part. Replace -l with -L, take out -pgoD, and that's how you end up with -rtL. I haven't actually tried this on my own system, but simply reading the manpage leads me to this -rtL suggestion.
If you need to preserve the things we're omitting above, don't rsync to a VFAT destination. Alternately, you could roll up your source files into a tarball and copy the tarball to your VFAT destination. You lose all that nice rsync functionality with the tarball method, but you can at least preserve your permissions and ownerships if that's required.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.