rsync
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| rsync [2010/08/01 04:04] – created k2patel | rsync [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Rsync ====== | ====== Rsync ====== | ||
| + | |||
| + | ==== Commonly used switches for rsync ==== | ||
| + | |||
| + | with status and Common variable | ||
| + | <code bash> | ||
| + | rsync --verbose --progress --stats --compress --recursive --times --perms --links < | ||
| + | </ | ||
| + | |||
| + | ==== SSH Wrapper ==== | ||
| + | SSH Wrapper allows to transfer files using rsync over SSH.\\ | ||
| + | Mostly usefull when dont have Rsyncd not running and have only access over ssh. | ||
| + | <code bash> | ||
| + | rsync -av -e "ssh -l testet" | ||
| + | </ | ||
| + | |||
| + | ==== Limit Bandwidth / Disk I/O ==== | ||
| + | |||
| + | To limit bandwidth when transferring over Network.\\ | ||
| + | OR\\ | ||
| + | Limit Disk I/O when transferring between Disk.\\ | ||
| + | Use " | ||
| + | |||
| + | Following example limit 100 MB/s | ||
| + | <code bash> | ||
| + | rsync -avgop --progress --bwlimit=102400 /mnt/drive1 /mnt/driv2 | ||
| + | </ | ||
| ==== General rsync Commands ==== | ==== General rsync Commands ==== | ||
| Line 15: | Line 41: | ||
| write only = true | write only = true | ||
| list = false | list = false | ||
| + | </ | ||
| + | |||
| + | <code text | rsync.secret> | ||
| + | rsyncusr: | ||
| + | </ | ||
| + | |||
| + | |||
| + | **NOTE :** | ||
| + | * Password is clear text password. | ||
| + | * Make sure password file is not world readable else it will fail to authenticate. | ||
| + | |||
| + | |||
| + | Define script for rsync OR run it from command line. | ||
| + | |||
| + | <code bash | rsync_test.sh> | ||
| + | #!/bin/sh | ||
| + | |||
| + | export RSYNC_PASSWORD=password123 | ||
| + | / | ||
| + | |||
| </ | </ | ||
rsync.1280635456.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
