Skip to content

Instantly share code, notes, and snippets.

@lemajes
Last active May 22, 2023 22:12
Show Gist options
  • Save lemajes/329d97ebb89788a17152beaf78d8007b to your computer and use it in GitHub Desktop.
Save lemajes/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 [email protected] "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 [email protected] 'dd if=/tmp/disk-image-raw' | dd of=/dev/sdb dd if=/tmp/disk-image.raw.gz | gzip -d | ssh [email protected] dd of=/dev/sdb status=progress

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