User Tools

Site Tools


rsync

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
rsync [2010/08/01 04:04]
k2patel created
rsync [2010/08/23 14:12]
k2patel
Line 1: Line 1:
 ====== Rsync ====== ====== Rsync ======
 +with status and Common variable
 +
 +rsync --verbose --progress --stats --compress --recursive --times --perms --links <​source>​ <​destination> ​ (location is defined as [hostname]::​path)
 +
 +== 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"​ <​source>​ <​destination>​
 +</​code>​
  
 ==== General rsync Commands ==== ==== General rsync Commands ====
Line 15: Line 25:
         write only = true         write only = true
         list = false         list = false
 +</​code>​
 +
 +<code text | rsync.secret>​
 +rsyncusr:​password123
 +</​code>​
 +
 +
 +**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
 +/​usr/​local/​bin/​rsync -az --delete --exclude='​.*'​ /​srv/​www/​htdocs/​ rsync://​rsyncusr@rsync.host.com/​root/​
 +
 </​code>​ </​code>​
rsync.txt ยท Last modified: 2020/08/10 02:35 (external edit)