What's the best (and simplest) way to make a system backup/image/snapshot?
I'm contemplating an upgrade (or fresh install) from Xubuntu 16.04LTS to Xubuntu 18.04LTS and I've been duly warned to make a system backup/image/snapshot before attempting it. I have backed up my Home folder on Back in Time, but not the system I guess. What's the simplest way of making such a backup? Thanks.
|
Not so sure about best, but surely pretty simple -
Code:
dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /PATH/TO/DRIVE/backup_image.iso.gz Note: This is a full metal backup/complete disk (bitwise) backup. |
Have a look at Clonezilla to make an image of your system partition(s). Store the image on an external hard drive or similar.
|
Quote:
|
Quote:
|
It rather depends on what you want to save.
Saving ... A list of installed programs may help. Entire image may help. Only unique data that you have like home or download, documents and such may help. Gparted can save a partition off. Clonezilla and dd can assist in a full or partial image if you intend to return to 16. Otherwise it may not be easy to get unique data off the image. |
I would recommend back up your home directory and any system configuration files that you have changed. Those would be files in /etc.
I normally do not back up configuration files that I have left at default. |
Quote:
full image can't hurt. What do you mean, though, about Gparted saving a partition off? |
Quote:
|
Quote:
If you have chosen to stick with a *NIX distro, why not unleash its full potential ? Remember every command comes with a manual (and info) to show what it arguments are used for and few has examples too. |
For an upgrade you don't need to image the drive. Just back up /home, and any custom config files. Anyway, if you image the entire disk, you probably won't be able to mount the image. You'd need to restore it to a disk to really do anything with it.
|
Quote:
http://redobackup.org/ Isos of your installed system are fine and dandy but there are other ways to think of backup. "dd" and "tar" and 'zip" of a installed system. Booting your Ubuntu live CD. Then format the drive partitions how you wish. Move that zipped compressed file you dd made and uncompress it in / partition. Shut down the live cd and computer. Reboot. you should now boot up to your old byte for byte copied system just like if you booted up a iso but instead of read only. It is also writable. my saved command for what I describe that copys rub bootloader and the whole mess is. use sudo the below command I use i give props to rubberman at linuxforums.com. It is not mine. to zip up < /home is on root / partition to make this command simpler > Code:
dd if=/dev/sda | gzip -c >/media/disk/system-image.gz to uncompress in my emptied linux formatted hard drive with a linux file system and partions. in a live cd again . go into where you have that file sitting system-image.gz on you external usb drive Code:
gunzip -c /media/disk/system-image.gz | dd of=/dev/sda Quote:
That is what I mean by my mount words. 2nd Edit; If it says unmount because you have automount enabled for whatever reason. Unmount it with the right click menu then. |
When I used Ubuntu, I think it came with deja-dup as its backup utility. It was good. It could be opened in the Ubuntu settings area, where there should be a "backup" option. Or, it can be run via the command "deja-dup-preferences", which gives a GUI to do a backup. Just check that deja-dup is installed, via Synaptic or via your favourite package management tool.
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 01:17 AM. |