Backup ubuntu server to USB

July 6, 2021 . 1 MIN READ

http://ubuntuforums.org/showthread.php?t=1106718

 

You could just use dd, like

Code:

dd if=/dev/sda of=/dev/sdb/backup_image.img

/dev/sda being the servers drive and /dev/sdb being the usb drive.

To restore the server from the backup .img you’d do,

Code:

dd if=/dev/sdb/backup_image.img of=/dev/sda

Just make sure you have enough space.

You can even use the count, skip and seek options to segment the image into smaller parts if needed.

Leave a Reply

Your email address will not be published. Required fields are marked *