Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Use rsync to copy a directory structure to VFAT
27 June 2011 @ 13:08 BST
by Paul

When I use rsync to copy a directory structure I often use the avz options. The a option is key as it tries to preserve everything. It is equivalent to -rlptgoD.

r
means recurse through subdirectories.
l
means recreate symlinks.
p
means preserve permissions.
t
means transfer modification times.
g
means destination group to be same as original group.
o
means preserve owner.
D
means preserve devices and specials.

When you are copying to a usb mounted vfat file system a a lot of these are inappropriate, particular, l, p, g, o and D.

So, in future when trying to copy a directory structure to a vfat file system I'll try this instead:

rsync -rtvz /source/ /destination/



Comments disabled