-1

I want to backup my System remotely. Can I jsut copy / via scp to get a working image of my System, or could this be a problem?

The System is a CentOS7

2 Answers 2

4

No, you can't just do that and get a working system.

1

SCP, no, as Iain said. But you can use ssh and dd to do this:

For each disk to back up:

ssh [email protected] "dd if=/dev/sdX | gzip -c" > host.to.backup.sdX.img.gz

Beware of changes to the disk while copying.

1
  • I C, so when im trying to backup the system with a single harddrive I have to do it on my local computer and connect to remote as follows:ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz right?
    – Twinhand
    Nov 24, 2015 at 11:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .