Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
rsync [2013/05/06 17:51] admin |
rsync [2014/12/27 21:04] (aktuell) admin |
||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| http://www.ostc.de/howtos/rsync-HOWTO.pdf | http://www.ostc.de/howtos/rsync-HOWTO.pdf | ||
| + | |||
| + | === Festplatte kopieren mit rsync === | ||
| + | |||
| + | http://www.dermute.de/75-festplatte-kopieren-mit-rsync | ||
| ===Serversicherung Feynman, Newton=== | ===Serversicherung Feynman, Newton=== | ||
| Zeile 60: | Zeile 64: | ||
| peer:~ # rsync -av --delete --progress /d/ /e/. | peer:~ # rsync -av --delete --progress /d/ /e/. | ||
| + | |||
| + | Upload auf peer.st/downloads | ||
| + | |||
| + | rsync -av --progress -e ssh sportwoche_drobollach_2014.mp4 root@193.170.221.2:/daten/einstein/srv/www/htdocs/peer.st/downloads/ | ||
| ISO aktualisieren auf proxy | ISO aktualisieren auf proxy | ||
| peer:/ # rsync -av -P --partial -e ssh root@IP:/daten/name.iso /daten/name.iso | peer:/ # rsync -av -P --partial -e ssh root@IP:/daten/name.iso /daten/name.iso | ||
| + | |||
| + | Upload auf proxy | ||
| + | |||
| + | rsync -av --progress /d/d4e2013/vwa-stick/2013.1_vwa-stick.zip -e ssh d4e@servername:/home/d4e/public_html/2013 | ||
| rsync -av -e ssh remoteuser@remotehost:/remote/dir /this/dir/ | rsync -av -e ssh remoteuser@remotehost:/remote/dir /this/dir/ | ||
| Zeile 102: | 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! | + | |