# HG changeset patch # User Oleksandr Gavenko # Date 1505737527 -10800 # Node ID aba1eda8608a60602a409327b24a64959f8cc53c # Parent 178897af315aec1f245acc88104551beb6bf9d73 Emulate file transfer. diff -r 178897af315a -r aba1eda8608a backup.rst --- a/backup.rst Sun Sep 03 00:11:27 2017 +0300 +++ b/backup.rst Mon Sep 18 15:25:27 2017 +0300 @@ -6,6 +6,8 @@ rsync ===== +Emulate file transfer with ``-n`` or by longer form ``--dry-run``. + Use FS with hardlink with ``cp -l``:: $ cp -al /backup/old /backup/new @@ -33,5 +35,6 @@ To copy over ssh:: - rsync -n -e 'ssh -l $RUSER' -r /archive/ $RHOST:/archive/ + $ rsync -n -e 'ssh -l $RUSER' -r /archive/ $RHOST:/archive/ + $ rsync -n -e 'ssh -l $RUSER' -r /archive/ $RUSER@$RHOST:/archive/