Hallo Liste,
ich möchte Daten (~200 GB) von einem PC mit OpenMediaVault auf eine
Synology NAS kopieren. Wie geht das am besten direkt ohne den Umweg über
meinen Laptop dazwischen. Danke schonmal für eure Hilfe.
LG
Andreas
LUGBZ Discourse Server is UP
Hallo Liste,
ich möchte Daten (~200 GB) von einem PC mit OpenMediaVault auf eine
Synology NAS kopieren. Wie geht das am besten direkt ohne den Umweg über
meinen Laptop dazwischen. Danke schonmal für eure Hilfe.
LG
Andreas
scp?
https://www.linux.com/topic/desktop/how-securely-transfer-files-between-servers-scp/
Oder mittels rsync https://en.wikipedia.org/wiki/Rsync
Patrick
Hallo,
hat sich erledigt. Hab am Synology NAS den SSH-Dienst aktiviert. Danach
per "screen" an OpenMediaVault eine neue Session gestartet und per "scp
-r ordnername user(a)entfernte-ip:pfad" die Daten kopiert. So kann ich das
Terminalfenster am Laptop schließen und ein paar Stunden sollte alles
kopiert sein!
LG
Andreas
Da verificare se, chiudendo la sessione terminale sul tuo client, quella
sulla NAS resta attiva; eventualmente termina il comando sulla NAS con &
Da aggiungere che scp, definiti i permessi su entrambi i lati, prevede che
source e destination possano essere entrambi remoti (vedi man scp, in
particolare l'option -B).
diego
attachment.htm (3.61 KB)
Ciao Diego,
si penso che Andreas abbia risolto con la combinazione scp + screen.
scp permette di avere sia source come anche destination in remoto. Ma
allora Andreas dovrebbe sempre tenere attivo il suo portatile. Cioè:
* SRC Server
* DST Server
* PORTATILE sul quale viene eseguito scp
In questo caso i dati viaggiano direttamente da SRC a DST, ma il
PORTATILE deve rimanere attivo come una sorta di supervisor.
Andreas con l'utilizzo si screen ha spostato la supervisione, cioè la
shell che esegue scp verso SRC. Cioè dal PORTATILE si è collegato via
SSH su SRC, nella shell ha fatto partire screen, che apre una shell che
può rimanere attiva anche quando il collegamento dal PORTATILE viene
chiuso, e così ha cambiato lo scenario in:
* SRC Server con scp + screen
* DST Server
E quando vuole controllare lo stato del commando in screen si può
collegare da PORTALE a SRC via ssh e fare una attach alla screen session.
screen è un vecchio tool molto potente per questi giochetti
Happy hacking!
Patrick
attachment.htm (8.2 KB)
Ciao Diego,
il comando "&" non è possibile con scp, perche devo inserire ancora la
password per accedere tramite ssh. Intanto sono felice con "screen".
Danke Patrick für den Hinweis mit rsync, auch ein sehr mächtiges
Werkzeug, das ich mir für die Backups per Openmediavault noch anschauen
werde!
LG
Andreas
attachment.htm (7.32 KB)
Hallo Andreas,
mit folgendem Command have ich mal Dateien von meinem PC auf Dropbox
gesynct. das Script wurde nach jedem Einschalten des PCs ausgeführt.
rsync -h --progress --stats -r -tgo -p -l -D --update --delete-after
--delete-excluded --exclude=**/*tmp*/ --exclude=**/*cache*/
--exclude=**/*Cache*/ --exclude=**/lost+found*/ --exclude=/var/run/**
--exclude=/run/** --exclude=/proc/** --exclude=/dev/** --exclude=/sys/**
--exclude=**/*Trash*/ --exclude=**/*trash*/ --exclude=**/.gvfs/
--protect-args -e ssh /home/patpc/backup/EigeneDateien
leiter(a)lgeitechpi.ddnsgeek.com:/home/leiter/Dropbox/BackupPatPc/
LG
Hugo
attachment.htm (8.2 KB)
attachment.htm (2.99 KB)