Am 14.11.19 um 16:25 schrieb Pierre Bernhardt:
> Is this for linke backup reason if the source dir is different
> from the link-dest dir because of different hosts like
> 
> rsync -av --dest-link=../a a/ backuphost:b/
> 
> where on backuphost a is an older copy and b is the new
> target?
Yea, that's the reason:

Here a simple test on my same account (localhost), but should
work also on different host:

~/o is my source dir on my account (with one more file)
host:tmp/a is the last backup (with missing 3-file)
host:tmp/b is the new backup (without any file for now)

After rsync ~/tmp/b should also have all the files linked
from a which are also not modified on local ~/o/ and
created new files from o to b  which are new or modified:


pierre@in94:~$ ls -li o tmp/a tmp/b
o:
insgesamt 8
257419 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1
257420 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2

tmp/a:
insgesamt 8
257315 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1
257316 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2

tmp/b:
insgesamt 0
pierre@in94:~$ echo bluppblupp >o/3
pierre@in94:~$ echo bluppblupp >>o/1
pierre@in94:~$ ls -li o tmp/a tmp/b
o:
insgesamt 12
257419 -rw-r--r-- 1 pierre pierre 15 Nov 14 16:34 1
257420 -rw-r--r-- 1 pierre pierre  6 Nov 14 10:53 2
257421 -rw-r--r-- 1 pierre pierre 11 Nov 14 16:31 3

tmp/a:
insgesamt 8
257315 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1
257316 -rw-r--r-- 1 pierre pierre 6 Nov 14 10:53 2

tmp/b:
insgesamt 0
pierre@in94:~$ rsync -av --link-dest=../a o/ localhost:tmp/b/
pierre@localhost's password:
sending incremental file list
./
1
3

sent 226 bytes  received 64 bytes  30.53 bytes/sec
total size is 32  speedup is 0.11
pierre@in94:~$ ls -li o tmp/a tmp/b
o:
insgesamt 12
257419 -rw-r--r-- 1 pierre pierre 15 Nov 14 16:34 1
257420 -rw-r--r-- 1 pierre pierre  6 Nov 14 10:53 2
257421 -rw-r--r-- 1 pierre pierre 11 Nov 14 16:31 3

tmp/a:
insgesamt 8
257315 -rw-r--r-- 1 pierre pierre 4 Nov 14 10:53 1
257316 -rw-r--r-- 2 pierre pierre 6 Nov 14 10:53 2

tmp/b:
insgesamt 12
257422 -rw-r--r-- 1 pierre pierre 15 Nov 14 16:34 1
257316 -rw-r--r-- 2 pierre pierre  6 Nov 14 10:53 2
257423 -rw-r--r-- 1 pierre pierre 11 Nov 14 16:31 3

Thanks for the explaination.

Cheers,
Pierre


-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to