Backuping and restoring.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 27 Aug 2017 18:25:08 +0300
changeset 2177 d2d54cdfce7e
parent 2176 40c43e30c7fa
child 2178 abbb150314d2
Backuping and restoring.
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
+