8 maart 2008

Backup remote folder on Mac/Unix

My data is very important for me. So I wanted to backup a large folder from my fileserver to a USB-disk. I know I could take the disk to my fileserver and plug it in, but I'm lazy.

So with the following command I managed to backup my 230GB folder.

rsync -e ssh -avr tijs@192.168.0.104:/mnt/disk2/work /Volumes/Backups/

Edit the command below for your needs:

rsync -e ssh -avr remote-username@remote-ip:/folder /Volumes/USB-disk-name/

You could drop the "v"-option, so it won't output each filename in your terminal.

Dit artikel gaat over: , , , , , , , . Backup remote folder on Mac/Unix werd geschreven door Tijs.
Er zijn al 2 reacties.

Reacties

Serge van Ginderachter

Serge van Ginderachter schreef:
09/03/08

I'm not sure why you use the "-e ssh" option, unless this is mac specific? I always do

rsync -avr remote-username@remote-ip:/folder /Volumes/USB-disk-name/

You might also dry-run with the -n switch before, and test out the differences of using trailing slashes in source and or destination, which make a difference.

tijs

tijs schreef:
09/03/08

The -e options force the use of ssh instead of rsh. It will be slower but the data will be encrypted. For home use this would be useless.

Reageer velden gemarkeerd met een sterretje zijn verplicht

*