linux:copy-preserve-rights
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:copy-preserve-rights [2018/03/08 12:54] – odefta | linux:copy-preserve-rights [2020/06/12 18:23] – [Copy recursively a folder and keep original rights] odefta | ||
---|---|---|---|
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 between two folders recursively ====== |
linux/copy-preserve-rights.txt · Last modified: 2023/07/04 19:36 by 127.0.0.1