|
rsync saved my life
|
|
Written by CJB
Friday, 07 December 2007 12:06 |
|
|
|
|
|
...not really but it's a really powerful file back up and sync tool lurking under the hood in OSX and most Linux systems.
here's a simple command line to backup and subsequently (going forward) one folder to another
$ rsync -vrup /path_to_folder_source /destination_path_to_folder_backup
-
// insert your own source and destinations paths
-
Other functions
-
$ man rsync
-
-v, --verbose increase verbosity
-
-q, --quiet decrease verbosity
-
-c, --checksum always checksum
-
-a, --archive archive mode, equivalent to -rlptgoD
-
-r, --recursive recurse into directories
-
-R, --relative use relative path names
-
--no-relative turn off --relative
-
--no-implied-dirs don't send implied dirs with -R
-
-b, --backup make backups (see --suffix & --backup-dir)
-
--backup-dir make backups into this directory
-
--suffix=SUFFIX backup suffix (default ~ w/o --backup-dir)
-
-u, --update update only (don't overwrite newer files)
-
--inplace update the destination files inplace
-
-K, --keep-dirlinks treat symlinked dir on receiver as dir
-
-l, --links copy symlinks as symlinks
-
-L, --copy-links copy the referent of all symlinks
-
--copy-unsafe-links copy the referent of "unsafe" symlinks
-
--safe-links ignore "unsafe" symlinks
-
-H, --hard-links preserve hard links
-
-p, --perms preserve permissions
|
 |
|
Last Updated ( Monday, 04 August 2008 12:06 )
|