User Tools

Site Tools


rsync

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
rsync [2015/05/06 08:49] luke7858rsync [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 11: Line 11:
 rsync -avzh $source_directory $_destination_directory/ rsync -avzh $source_directory $_destination_directory/
 </sxh> </sxh>
-===  ====+=== Exclude Directories Locally ==== 
 +The . represents the current directory
 <sxh bash> <sxh bash>
 +rsync -avzh --exclude 'Dir1/' --exclude 'Dir2/' --exclude 'Dir3' --exclude 'Dir4/' . /var/www/vhost/lukeslinux.co.uk/
 </sxh> </sxh>
 +\\
 +\\
 +Need to update
 <sxh bash> <sxh bash>
-a - archive mode +rsync -avn --delete 
-v - verbose +rsync -avni --delete 
-r - recursively +rsync -avni --update 
-z - compress+</sxh> 
 +\\ 
 +\\ 
 +\\ 
 +<sxh bash> 
 +-a - archive mode, archive mode allows copying files recursively and it also preserves symbolic links, file permissions, user & group 
 +-v - verbose 
 +-r - recursively 
 +-z - compress 
 +-h - human readable output 
 +--progress - show progress report 
 +--include - include only the directories mentioned 
 +--exclude - exclude only the directories mentioned
 </sxh> </sxh>
rsync.1430902184.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki