Archive to a remote server using tar and ssh


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. tar cvpjf - --exclude=/selinux --exclude=/srv --exclude=/dev --exclude=/boot --exclude=/tmp --exclude=/mnt --exclude=/sys --exclude=/lost+found --exclude=/proc / | ssh [email protected] "dd of=/root/archive_of_my_server.tar.bz2"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.