This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
rsync [2010/08/01 04:04] k2patel created |
rsync [2010/08/03 21:54] k2patel |
||
---|---|---|---|
Line 15: | Line 15: | ||
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> |