equal
deleted
inserted
replaced
|
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 |