| .. | ||
| README.md | ||
Table of Contents
Datentransfer
SCP
lokal auf server
scp -oProxyCommand="ssh -W %h:%p ubuntu@jumphost-cosmos.docuteam.cloud" <datei.endung> ubuntu@10.0.3.137:/home/ubuntu
server auf lokal
mit Jumphost.
scp -r -oProxyJump=ubuntu@jumphost-cosmos.docuteam.cloud butler@10.7.1.97:/home/butler/actions/clients/640/workbench/0_preparation/Sefar "/mnt/scratch/640 Sefar"
rsync
https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/
| Param | Description |
|---|---|
| -C | (= --cvs-exclude) Excluding RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS .make.state .nse_depinfo ~ # .#* ,* _* * *.old *.bak *.BAK *.orig .rej .del- *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core .svn/ .git/ .hg/ .bzr/ |
| -r | recursive |
| -t | (= --times) This tells rsync to transfer modification times along with the files and update them on the remote system. |
| -u | überspringt Dateien, die im Ziel neuer sind als in der Quelle |
| -v | verbose. zeigt während des Synchronisierens alle ausgeführten Schritte an |
| -z | aktiviert die Komprimierung für die Datenübertragung (diese Option ist sinnvoll, wenn zwischen Quelle und Ziel eine langsame Verbindung besteht) |
| -n | simuliert nur was passieren würde ("dry run") |
| --progress | Fortschrittsanzeige beim Transfer anzeigen |
| --delete | vergleicht Quellverzeichnisse und Zielverzeichnisse und sorgt dafür, dass Dateien, die im Quellverzeichnis nicht (mehr) vorhanden sind, im Zielverzeichnis gelöscht werden. |
| --delete-excluded | In addition to deleting the files on the receiving side that are not on the sending side, this tells rsync to also delete any files on the receiving side that are excluded (see --exclude). |
| --exclude | This option allows you to selectively exclude certain files from the list of files to be transferred. |
| -e | wählt die remote shell aus, die meisten werden SSH nutzen. Also -e ssh |
Files und Ordner von Server nach lokalem Verzeichnis kopieren
rsync -e "ssh -i ~/.ssh/id_rsa" -avzh administrator@33766.hostserv.eu:/var/www/ig_baumfreunde .
oder
rsync -e "ssh -i ~/.ssh/id_rsa" -avzhu --ignore-existing administrator@33766.hostserv.eu:/var/www/ig_baumfreunde .
robocopy
ToDo