1 |
Hallo. |
2 |
|
3 |
Bernd Wurst schrieb am Thursday 23 February 2006 13:22: |
4 |
|
5 |
> Man kann damit z.B. so vorgehen: |
6 |
> |
7 |
> rsync --update /home /backup/current |
8 |
> cp -rl /backup/current /backup/$(date +"%Y-%m-%d") |
9 |
|
10 |
Ich glaube du willst nicht --update benutzen! |
11 |
|
12 |
|
13 |
chris@sirona /tmp/rsynctest $ cat quelle/* |
14 |
Dies ist der Inhalt von Datei a |
15 |
Dies ist der Inhalt von Datei b |
16 |
|
17 |
chris@sirona /tmp/rsynctest $ rsync -r --update quelle/ ziel/ |
18 |
|
19 |
chris@sirona /tmp/rsynctest/quelle $ mv quelle/b quelle/a |
20 |
|
21 |
chris@sirona /tmp/rsynctest $ rsync -r --update quelle/ ziel/ |
22 |
|
23 |
chris@sirona /tmp/rsynctest $ cat ziel/* |
24 |
Dies ist der Inhalt von Datei a |
25 |
Dies ist der Inhalt von Datei b |
26 |
|
27 |
|
28 |
Änderungen werden u. U. nicht übernommen, wenn die neuen Dateien älter sind. |
29 |
Das kann aber z. B. beim Entpacken von tars schnell mal passieren ... |
30 |
|
31 |
|
32 |
Chris |
33 |
|
34 |
-- |
35 |
Kontakt-Details: http://www.christoph-probst.com/kontakt/ |
36 |
PGP-FP: B171 7EA4 988C DD90 1601 D21C 5279 2FAF 9978 AF86 |