Code:
rsync -PL /in/file /out/file
will copy like the cp command, except that it will follow symlinks (and shows progress)
Code:
rsync -PLa /in/file /out/file
will do the same, but it will keep the file the same (and work recursively, etc)
Originally Posted by
http://linux.die.net/man/1/rsync
-P same as --partial --progress
--partial keep partially transferred files
--progress show progress during transfer
------
-L, --copy-links transform symlink into referent file/dir
------
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
-r, --recursive recurse into directories
-l, --links copy symlinks as symlinks
-p, --perms preserve permissions
-t, --times preserve modification times
-g, --group preserve group
-o, --owner preserve owner (super-user only)
-D same as --devices --specials
--devices preserve device files (super-user only)
--specials preserve special files
Bookmarks