Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This 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.


  Search this Thread
Old 02-06-2006, 10:05 AM   #1
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

Rep: Reputation: 15
Question How to Stop rsync From Doing chown?

Hi all,

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:

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!).

My rsync command is:

sudo rsync -aL --delete /home/edwin11 /media/usbdisk-1

TIA and Regards,
Old 02-06-2006, 11:49 AM   #2
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,327

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.
1 members found this post helpful.
Old 02-07-2006, 06:00 AM   #3
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

Original Poster
Rep: Reputation: 15
Right! How silly of me! Thanks haertig!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop services from restarting after I stop them? M$ISBS Linux - Software 3 10-27-2005 08:13 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM
How can I stop rsync from deleting data if network link is dropped? skyfly Linux - Networking 2 06-30-2004 10:35 AM
chown -R ujotne Programming 3 02-25-2004 12:02 PM
chown? joetec Linux - Newbie 6 04-07-2002 04:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration