# HG changeset patch # User Oleksandr Gavenko # Date 1503847508 -10800 # Node ID d2d54cdfce7e21c4c5d7af295423797c6a59bc82 # Parent 40c43e30c7fa13642d636293af4ac6a7fe1e65db Backuping and restoring. diff -r 40c43e30c7fa -r d2d54cdfce7e backup.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/backup.rst Sun Aug 27 18:25:08 2017 +0300 @@ -0,0 +1,25 @@ + +========================= + Backuping and restoring +========================= + +rsync +===== + +Use FS with hardlink with ``cp -l``:: + + $ cp -al /backup/old /backup/new + $ rsync -a --delete --progress /data/ /backup/new/ + +Use FS hardlink exclusively with ``rsync``:: + + $ rsync -a --delete --progress --link-dest=../previous /data/ /backup/new/ + +.. note:: ``--link-dest`` accepts a relative path, it is relative to the + destination directory. + +.. note:: Cygwin ``rsync`` implementation can use NTFS hard links with + ``--link-dest`` option. Check it with:: + + cmd> fsutil hardlink list c:\backup\new\file.txt +