Use rsync to synchronize directories/backup

rsync -rtvlz –progress –size-only /home/    /media/usb_disk/home/back_up/


-r copies also all subdirectories within main directory
-t preserves modification times
-v verbose mode, shows more information
-l copies symbolic links
-z compresses files for faster transfer
–progress shows progress during transfer
–size-only compare files based on their size instead of hashes (less CPU, so faster)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s