Two Way rsync via SSH: Difference between revisions

From D3xt3r01.tk
Jump to navigationJump to search
m (Created page with '==WHY== Because I need to keep in sync some servers with the same content... ==HOW== 1) Password-less SSH Login 2) <source lang="bash"> rsync -e 'ssh -ax -p PORT -l USER…')
(No difference)

Revision as of 15:20, 30 December 2010

WHY

Because I need to keep in sync some servers with the same content...

HOW

1) Password-less SSH Login

2)

rsync -e 'ssh -ax -p PORT -l USER -i /path/to/rsync-key' -avzurP /path/to/source/ REMOTE_HOST:/path/to/destination/
rsync -e 'ssh -ax -p PORT -l USER -i /path/to/rsync-key' -avzurP REMOTE_HOST:/path/to/destination/ /path/to/source/