linux:copy-preserve-rights
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:copy-preserve-rights [2020/04/13 12:41] – odefta | linux:copy-preserve-rights [2023/07/04 16:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Synchronize two local folders ====== | ====== Synchronize two local folders ====== | ||
| + | < | ||
| rsync -avz --delete / | rsync -avz --delete / | ||
| + | </ | ||
| ====== Copy recursively a folder and keep original rights ====== | ====== Copy recursively a folder and keep original rights ====== | ||
| - | cp -a /data1 /bkpdata1 | + | cp -a /data1/* /bkpdata1 |
| ====== Diff between two folders recursively ====== | ====== Diff between two folders recursively ====== | ||
linux/copy-preserve-rights.1586781678.txt.gz · Last modified: (external edit)
