41 lines
824 B
Markdown
41 lines
824 B
Markdown
---
|
|
gitea: none
|
|
include_toc: true
|
|
---
|
|
# 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/
|
|
|
|
### 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 |