LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-06-2006, 10:05 AM   #1
edwin11
Member
 
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:

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

My rsync command is:

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


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

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
edwin11
Member
 
Registered: Dec 2005
Distribution: Linux Mint 13 MATE
Posts: 120

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



Regards,
Edwin
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:13 PM.

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