linux:copy-preserve-rights
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:copy-preserve-rights [2018/03/08 10:51] – created odefta | linux:copy-preserve-rights [2023/07/04 16:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| + | < | ||
| + | rsync -avz --delete / | ||
| + | </ | ||
| - | df -a /data1 /bkpdata1 | + | ====== Copy recursively a folder and keep original rights ====== |
| + | |||
| + | cp -a /data1/* /bkpdata1 | ||
| + | |||
| + | ====== Diff between two folders recursively ====== | ||
| + | |||
| + | diff -rq /data1 /bkpdata1 | ||
linux/copy-preserve-rights.1520506279.txt.gz · Last modified: (external edit)
