Emulate file transfer.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 18 Sep 2017 15:25:27 +0300
changeset 2180 aba1eda8608a
parent 2179 178897af315a
child 2181 a657e0a7446b
Emulate file transfer.
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/