User Tools

Site Tools


rsync:copy_data_encrypted_and_exclude_folders

Differences

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

Link to this comparison view

rsync:copy_data_encrypted_and_exclude_folders [2016/10/18 09:57] – created peterrsync:copy_data_encrypted_and_exclude_folders [2019/12/04 18:54] (current) – removed peter
Line 1: Line 1:
-====== RSync - Copy data encrypted and exclude folders ====== 
  
-<code bash> 
-rsync -av --exclude dir2 --exclude dir2 -n user@server:/var/www/path/to/somewhere . 
-</code> 
- 
-This transfers recursively all files from the directory /var/www/path/to/somewhere on the machine server into the local directory on the local machine.  The files are transferred in “archive” mode, which ensures that symbolic links, devices, attributes, permissions, ownerships, etc. are preserved in the transfer. 
- 
-With <nowiki>--exclude</nowiki> directories which should not be copied can be skipped and -n tells rsync to run in the dry mode which simulates the operations which would take place. 
rsync/copy_data_encrypted_and_exclude_folders.1476784637.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki