viernes, 1 de marzo de 2019

ssh remoto

# SSH copiado remoto
tar cpf - /some/important/data | ssh user@destination-machine "tar xpf - -C /some/directory/"
tar cvpf - /mediation/proc | ssh root@10.7.24.98 "tar xpf - -C /mediation/proc/"
tar cvpf - /mediation/input | ssh root@10.7.24.98 "tar xpf - -C /mediation/input/"
tar cvpf - /mediation/backup2 | ssh root@10.7.24.98 "tar xpf - -C /mediation/backup2/"

No hay comentarios:

Publicar un comentario

Comentarios