backup.rst
changeset 2180 aba1eda8608a
parent 2178 abbb150314d2
child 2181 a657e0a7446b
equal deleted inserted replaced
2179:178897af315a 2180:aba1eda8608a
     3  Backuping and restoring
     3  Backuping and restoring
     4 =========================
     4 =========================
     5 
     5 
     6 rsync
     6 rsync
     7 =====
     7 =====
       
     8 
       
     9 Emulate file transfer with ``-n`` or by longer form ``--dry-run``.
     8 
    10 
     9 Use FS with hardlink with ``cp -l``::
    11 Use FS with hardlink with ``cp -l``::
    10 
    12 
    11   $ cp -al  /backup/old /backup/new
    13   $ cp -al  /backup/old /backup/new
    12   $ rsync -a --delete --progress /data/ /backup/new/
    14   $ rsync -a --delete --progress /data/ /backup/new/
    31 
    33 
    32   -v  --progress
    34   -v  --progress
    33 
    35 
    34 To copy over ssh::
    36 To copy over ssh::
    35 
    37 
    36   rsync -n -e 'ssh -l $RUSER' -r  /archive/ $RHOST:/archive/
    38   $ rsync -n -e 'ssh -l $RUSER' -r  /archive/ $RHOST:/archive/
       
    39   $ rsync -n -e 'ssh -l $RUSER' -r  /archive/ $RUSER@$RHOST:/archive/
    37 
    40