Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
de:server:services:rsync [2022/09/03 00:16] – removed - external edit (Unknown date) 127.0.0.1 | de:server:services:rsync [2022/10/24 08:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== rsync ====== | ||
+ | rsync ist ein Open-Source-Dienstprogramm, | ||
+ | |||
+ | ===== Paket ===== | ||
+ | |||
+ | < | ||
+ | pacman -S rsync | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== SSH ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | rsync --recursive --links --times --owner --group --itemize-changes --partial --progress --human-readable --verbose --stats /local/path user@host: | ||
+ | </ | ||
+ | |||
+ | **Von ssh nach lokal**: | ||
+ | < | ||
+ | rsync --recursive --links --times --owner --group --itemize-changes --partial --progress --human-readable --verbose --stats user@host: | ||
+ | </ | ||
+ | |||
+ | **Kurz**: | ||
+ | < | ||
+ | rsync -rltogiPhv --stats /local/path user@host: | ||
+ | </ | ||
+ | < | ||
+ | rsync -rltogiPhv --stats user@host: | ||
+ | </ | ||
+ | |||
+ | **Anderer port**: | ||
+ | < | ||
+ | rsync -rltogiPhv --stats -e "ssh -p PORTNUMBER" | ||
+ | </ | ||
+ | |||
+ | Siehe, was jede Option bewirkt - https:// | ||
+ | |||
+ | |||
+ | ===== Daemon ===== | ||
+ | |||
+ | ==== Anmeldeinformationen==== | ||
+ | |||
+ | < | ||
+ | echo " | ||
+ | chmod 400 / | ||
+ | </ | ||
+ | |||
+ | ==== Konfiguration ==== | ||
+ | |||
+ | Ändere '' | ||
+ | |||
+ | < | ||
+ | nano / | ||
+ | </ | ||
+ | < | ||
+ | [archive] | ||
+ | path = /path/ | ||
+ | comment = Archive | ||
+ | timeout = 300 | ||
+ | read only = false | ||
+ | # http user if you want to have access via web | ||
+ | #uid = 33 | ||
+ | #gid = 33 | ||
+ | # Run a script before and after a connection | ||
+ | #pre-xfer exec = / | ||
+ | #post-xfer exec = / | ||
+ | # Security | ||
+ | auth users = $user | ||
+ | secrets file = / | ||
+ | # Optional | ||
+ | #hosts allow = 192.168.1.0/ | ||
+ | </ | ||
+ | |||
+ | ==== Start ==== | ||
+ | |||
+ | < | ||
+ | systemctl enable --now rsyncd.service | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Command ==== | ||
+ | |||
+ | Änder '' | ||
+ | |||
+ | < | ||
+ | rsync --rltogiPhv --stats /local/path rsync:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Backup ===== | ||
+ | |||
+ | Gehe zu unserem [[de: |