backup.rst
changeset 2177 d2d54cdfce7e
child 2178 abbb150314d2
equal deleted inserted replaced
2176:40c43e30c7fa 2177:d2d54cdfce7e
       
     1 
       
     2 =========================
       
     3  Backuping and restoring
       
     4 =========================
       
     5 
       
     6 rsync
       
     7 =====
       
     8 
       
     9 Use FS with hardlink with ``cp -l``::
       
    10 
       
    11   $ cp -al  /backup/old /backup/new
       
    12   $ rsync -a --delete --progress /data/ /backup/new/
       
    13 
       
    14 Use FS hardlink exclusively with ``rsync``::
       
    15 
       
    16   $ rsync -a --delete --progress --link-dest=../previous /data/ /backup/new/
       
    17 
       
    18 .. note:: ``--link-dest`` accepts a relative path, it is relative to the
       
    19           destination directory.
       
    20 
       
    21 .. note:: Cygwin ``rsync`` implementation can use NTFS hard links with
       
    22    ``--link-dest`` option. Check it with::
       
    23 
       
    24      cmd> fsutil hardlink list c:\backup\new\file.txt
       
    25