Here is a fairly good example that syncs everything in the /newdrive directory from one computer to an other preserving permissions and ownership and deleting files on the target that don't exist anymore on the source.
It excludes anything that looks like 'Norton Ghost Backup' and the lost+found folders. It also limits the bandwidth to 500k to prevent saturating the local network.
rsync -avz --delete --rsh=ssh --stats --progress --bwlimit=500 --exclude='*Norton\ Ghost\ Backup*' --exclude='*lost+found' jd@192.168.0.103:/newdrive/* /newdrive
What is the procedure and syntax to 'rsync' all of a specific set of
directories and files from one computer to another that are on the same
network?
I have been burning DVDs on one computer and copying those files onto my
other computer(s), but when I download all those files, the permissions
are all changed to be non-writeable files and directories.
-r--r--r-- 1 root root 9598 Feb 2 15:18 filenames
dr-xr-xr-x 5 root root 6144 Feb 2 21:06 directory-names
Is there some way to globally fix that?
Or would 'rsync' be a better solution?
I've never used 'rsync' and after reading the 'man' pages, I'm still
confused.
Is there a way to do this to preserve the file dates and only copy those
files that are newer (have more recent dates) onto the target system?
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss