This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rsync [2016/10/14 14:33] – external edit 127.0.0.1 | rsync [2023/02/23 11:25] (current) – Jan Forman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== RSYNC ====== | ||
+ | |||
+ | |||
+ | ====== / | ||
+ | < | ||
+ | use chroot = yes | ||
+ | |||
+ | [documents] | ||
+ | path = / | ||
+ | comment = Public | ||
+ | uid = nobody | ||
+ | gid = nobody | ||
+ | read only = no | ||
+ | list = yes | ||
+ | auth users = rsyncclient | ||
+ | secrets file = / | ||
+ | hosts allow = 10.0.0.0/ | ||
+ | </ | ||
+ | |||
+ | ====== / | ||
+ | < | ||
+ | rsyncclient: | ||
+ | backup: | ||
+ | user: | ||
+ | </ | ||
+ | |||
+ | sudo chmod 600 / | ||
+ | |||
+ | ====== Synchronize with dir ====== | ||
+ | < | ||
+ | |||
+ | |||
+ | --bwlimit=100 – limit transferring speed to 100 kB/s\\ | ||
+ | --delete – delete files that are not in source directory\\ | ||
+ | --remove-source-files – delete file after transfer (a.k.a moving files :)\\ | ||
+ | --sparse – handle sparse files efficiently | ||