Youry's Blog

Youry's Blog

Good paper about rsync through ssh

leave a comment »

An Updated Rsync 3.1.0 for Mavericks

from http://selfsuperinit.com/2014/01/04/an-updated-rsync-3-1-0-for-mavericks/

George January 4, 2014 Update 1/6/14

Well that sucks, it looks like rsync 3.1.0 is broken for OSX. You can use the same instructions here for 3.0.9, just change the commands below accordingly.

Because of the new GPLv3 licensing of rsync 3.0+, Mavericks still has the same old rsync 2.6.9 as prior iterations of OSX, which to say the least is extremely outdated and does not copy everything about an OSX file. Mike Bombich over at Bombich Software, author of the great Carbon Copy Cloner, wrote many of the rsync patches and had a page describing the compilation details for rsync 3.0.7. These are the instructions adapted for rsync 3.1.0.

I have an alias, nrsync (new rsync) which has a few more niceties. It’s defined as:

This forces rsync to use ssh with the arcfour cipher which is a fast, if not the fastest, encryption scheme for SSH. Because I use rsync with my 4 Macs (Mac Pro, Macbook Pro, iMac, Macbook), I also force it to use the one in /usr/local/bin on the remote side.

 

  1. another good paper about rsync backup http://www.my-guides.net/en/guides/linux/87-how-to-backupsynchronize-your-files-using-rsync

    rsync -r -t -v --progress -c -l -z /home/axel/ /mnt/data2/Backup/home/ -n

    -r copies also all subdirectories within main directory
    -t preserves modification times
    -v verbose mode, shows more information
    –progress shows progress during transfer
    –delete deletes files in destination which are not present in the source
    -c compares files contents by checksum
    -l copies symbolic links
    -z compresses files for faster transfer

  2. https://www.linux.com/news/enterprise/storage/8200-back-up-like-an-expert-with-rsync

something to memorize:

rsync –progress -avhe ssh –delete /home/user/dir/ user@remote.host.com:dir/

ssh-keygen -t dsa, and press Enter when prompted for a passphrase.

ssh-copy-id -i .ssh/id_dsa.pub user@remote.host.com to copy the public key to the remote host.

it’s necessary to add some restrictions as well. will write later about it.

Advertisements

Written by youryblog

June 8, 2012 at 3:47 PM

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

%d bloggers like this: