Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active May 22, 2023 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/329d97ebb89788a17152beaf78d8007b to your computer and use it in GitHub Desktop.
Save vpnwall-services/329d97ebb89788a17152beaf78d8007b to your computer and use it in GitHub Desktop.
[OVH VPS 101] OVH VPS 101 #ovh #vps #101 #dd #backup #restore

OVH VPS 101

  • Backup from rescue to ssh remote using dd from backup server ssh root@target.server "dd if=/dev/sdb | gzip" > /tmp/disk-image.raw.gz

  • Unzip on backup server gunzip -d /tmp/disk-image.raw.gz

  • Restore from ssh remote using dd from target ssh -i /tmp/ppp root@backup.server 'dd if=/tmp/disk-image-raw' | dd of=/dev/sdb dd if=/tmp/disk-image.raw.gz | gzip -d | ssh root@target.server dd of=/dev/sdb status=progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment