fake-super store/recover privileged attrs using xattrs super receiver attempts super-user activities O, -omit-dir-times omit directories from -times devices preserve device files (super-user only) o, -owner preserve owner (super-user only) chmod=CHMOD affect file and/or directory permissions E, -executability preserve executability K, -keep-dirlinks treat symlinked dir on receiver as dir k, -copy-dirlinks transform symlink to dir into referent dir safe-links ignore symlinks that point outside the tree copy-unsafe-links only "unsafe" symlinks are transformed L, -copy-links transform symlink into referent file/dir d, -dirs transfer directories without recursing
append-verify -append w/old data in file checksum
GRSYNC FOR MAC UPDATE
inplace update destination files in-place u, -update skip files that are newer on the receiver suffix=SUFFIX backup suffix (default ~ w/o -backup-dir) backup-dir=DIR make backups into hierarchy based in DIR b, -backup make backups (see -suffix & -backup-dir) no-implied-dirs don’t send implied dirs with -relative no-OPTION turn off an implied OPTION (e.g.
GRSYNC FOR MAC ARCHIVE
a, -archive archive mode equals -rlptgoD (no -H,-A,-X) c, -checksum skip based on checksum, not mod-time & size no-motd suppress daemon-mode MOTD (see caveat) Here is a short summary of the options available in rsync. When not using "/" at the end of destination, rsync will create a folder with the lastĭestination folder name and paste the data inside that folder. When using "/" at the end of destination, rsync will paste the data inside the last folder. When not using "/" at the end of source, rsync will copy the last folder and the content of the folder. When using "/" at the end of source, rsync will copy the content of the last folder. (This example will copy everything (folders, sub-folders, etc), will preserver permissions, times, links, but will exclude the folder /home/user01/logs/ from being copied) Rsync -arv -exclude 'logs' /Users/bob/user01backup/ (This example will copy folders and sub-folder but will not preserve permissions, times and symbolic links during the transfer) V = verbose - means that it prints on the screen what is being copied R = recursive - means it copies directories and sub directories
GRSYNC FOR MAC MAC
(/Volumes/westerndigital-usb/user01backup/ is an external USB Drive path on a local Mac computer)Ī = archive - means it preserves permissions (owners, groups), times, symbolic links, and devices. Rsync -arv /Volumes/westerndigital-usb/user01backup/ Rsync example for backing up / copying from remote server to local Mac computer and external USB drive: (/Users/bob/user01backup/ is a local Mac folder path) Rsync example for backing up / copying from remote server to local Mac computer: ( /home/bob/user01backup/ is a local Linux folder path) Rsync example for backing up / copying from remote server to local Linux computer:
Use some example to explain on how it works.Įxample of the remote server and folder that needs to be backup or copied:
Rsync is a great tool for backing up and restoring files. Rsync examples Backing up data using rsync command
GRSYNC FOR MAC HOW TO
How to Hire a Good Web Application Development Company.Hiring a Web Application Company Considerations.Internet / Online Business Ideas and Strategies for Entrepreneurs.Magento vs OScommerce vs Zen Cart Comparison.Enterprise eCommerce Platform Comparison.Pros and Cons of Wordpress, Joomla, Drupal.Open Source CMS - Detailed Guide, Security, Performance Statistics Enterprise Content Management System vs.Drupal vs Joomla vs WordPress CMS Comparison.What is Content Management System (CMS).