This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
rsync [2010/08/23 14:12] k2patel |
rsync [2010/10/05 23:48] k2patel |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Rsync ====== | ====== Rsync ====== | ||
with status and Common variable | with status and Common variable | ||
+ | <code bash> | ||
rsync --verbose --progress --stats --compress --recursive --times --perms --links <source> <destination> (location is defined as [hostname]::path) | rsync --verbose --progress --stats --compress --recursive --times --perms --links <source> <destination> (location is defined as [hostname]::path) | ||
+ | </code> | ||
- | == SSH Wrapper == | + | ==== SSH Wrapper ==== |
SSH Wrapper allows to transfer files using rsync over SSH.\\ | SSH Wrapper allows to transfer files using rsync over SSH.\\ | ||
Mostly usefull when dont have Rsyncd not running and have only access over ssh. | Mostly usefull when dont have Rsyncd not running and have only access over ssh. | ||
<code bash> | <code bash> | ||
rsync -av -e "ssh -l testet" <source> <destination> | rsync -av -e "ssh -l testet" <source> <destination> | ||
+ | </code> | ||
+ | |||
+ | ==== Limit Bandwidth / Disk I/O ==== | ||
+ | |||
+ | To limit bandwidth when transferring over Network.\\ | ||
+ | OR\\ | ||
+ | Limit Disk I/O when transferring between Disk.\\ | ||
+ | Use "--bwlimit" switch. it is measured as "KBytes" | ||
+ | |||
+ | Following example limit 100 MB/s | ||
+ | <code bash> | ||
+ | rsync -avgop --progress --bwlimit=102400 /mnt/drive1 /mnt/driv2 | ||
</code> | </code> | ||