User Tools

Site Tools


linux:copy-preserve-rights

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:copy-preserve-rights [2019/05/28 12:18] – odeftalinux:copy-preserve-rights [2020/06/12 15:23] (current) – [Copy recursively a folder and keep original rights] odefta
Line 1: Line 1:
 +====== Synchronize two local folders ======
 +<code>
 +rsync -avz --delete /media/usb/* /home/partimag
 +</code>
 +
 ====== 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.1559045882.txt.gz · Last modified: (external edit)