Last active
September 2, 2024 04:38
-
-
Save paltaio-admin/a7c7f72072e9e47df6392e65d24ab3a6 to your computer and use it in GitHub Desktop.
Clone DigitalOcean disk to own server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # On DO server as root | |
| dd if=/dev/zero of=/zerofile bs=1M status=progress || echo "Zeroing complete" | |
| rm -f /zerofile | |
| # On your machine | |
| ssh root@myserver "dd if=/dev/vda | gzip -c | pv" | gzip -dc | sudo dd of=/dev/sda status=progress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment