19

Windows has this. Basically what I want is to record the state of the system either manually or periodically and then restore to that point if required. For example, before upgrading the distribution, or before installing a certain package.

What would be the easiest way to do this?

Slavo
  • 417

4 Answers4

11

You can try Back in Time:

sudo add-apt-repository ppa:bit-team/stable
sudo apt-get update
sudo apt-get install backintime-qt4

Note: GNOME/KDE UI has been deprecated, hence -qt4 now. See here.

edwinksl
  • 24,109
sergio91pt
  • 2,962
10

There are different backup-utilities available, but the functionality of the "Windows Restore System" does not exist in that form (at least not that I know of) (since it's not really necessary see Footnote).

If you have a small system partition you can easily create an image of it using dd, saving it to disk and if necessary restore it.

dd if=/dev/sdXX of=/media/backup/system.img bs=1M

Footnote: I don't see the need for such functionality because there's no way to wreck the system by installing something as long as you stick to apt. Updated kernels might not boot or work correct, that's why the old ones are remaining (and can still be booted) until they're removed by hand. Of course you can still screw everything, but that's a lot harder to do.

Bobby
  • 804
4

Time Shiftcan also do the same.

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install timeshift

enter image description here

Raja G
  • 105,327
  • 107
  • 262
  • 331
3

You can also use a storage volume management system (e.g. LVM) or a filesystem (e.g. btrfs) that supports snapshots for this.

And most virtualisation software also supports this in their "disk files" (e.g. the qcow/qcow2 format used in qemu).

JanC
  • 19,802