Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
rsync [2014/07/11 16:09] admin |
rsync [2014/12/27 21:04] (aktuell) admin |
||
|---|---|---|---|
| Zeile 114: | Zeile 114: | ||
| *[[http://www.xxcopy.com/index.htm|xxcopy]] | *[[http://www.xxcopy.com/index.htm|xxcopy]] | ||
| - | + | === rsync von SLES 11 auf Windows 7 Freigabe === | |
| - | === rsync Server === | + | rsync --iconv=UTF-8,UTF-8 -va -z --partial -P --delete /daten/backup/ /sicherung/sicherung/. |
| - | + | ||
| - | <code bash /etc/rsyncd.conf> | + | |
| - | gid = users | + | |
| - | read only = true | + | |
| - | use chroot = true | + | |
| - | transfer logging = true | + | |
| - | log format = %h %o %f %l %b | + | |
| - | log file = /var/log/rsyncd.log | + | |
| - | pid file = /var/run/rsyncd.pid | + | |
| - | hosts allow = | + | |
| - | slp refresh = 300 | + | |
| - | use slp = false | + | |
| - | + | ||
| - | [homefreigabe] | + | |
| - | path = /home/matthias/ | + | |
| - | comment = syncordner | + | |
| - | auth users = matthias | + | |
| - | secrets file = /etc/rsyncd.secrets | + | |
| - | read only = false | + | |
| - | uid= 1000 | + | |
| - | </code> | + | |
| - | + | ||
| - | <code bash /etc/rsync.secrets> | + | |
| - | matthias:smbpasswort | + | |
| - | </code> | + | |
| - | + | ||
| - | rcrsyncd start | + | |
| - | insserv rsyncd | + | |
| - | + | ||
| - | *Sichern: | + | |
| - | <code bash backup.sh> | + | |
| - | #!/bin/bash | + | |
| - | rsync -auv --delete --password-file=rsync.pwd --exclude=/.* --exclude=Videos/* ~/ matthias@192.168.1.42::homefreigabe | + | |
| - | sleep 2 | + | |
| - | </code> | + | |
| - | + | ||
| - | *Rücksichern: | + | |
| - | <code bash restore.sh> | + | |
| - | #!/bin/bash | + | |
| - | rsync -auv --delete --password-file=rsync.pwd --exclude=/.* --exclude=Videos/* matthias@192.168.1.42::homefreigabe ~/ | + | |
| - | sleep 2 | + | |
| - | </code> | + | |
| - | + | ||
| - | *Passwort: Besser ssh-Schlüssel! | + | |