Ubuntu: How to make a custom snapshot of non-system related stuff and be able to restore without reboot?


I've looked through the past threads but couldn't find anything.

I'm looking for the tool or solution that makes a snapshot of a system state (it doesn't have to be everything, but I could specify where to snapshot) and ability to restore to that given snapshot without ubuntu restart.

As I don't need to snapshot system files, so I hope this is possible to restore to a given snapshot point without a restart.

To be more clear, let's say, before working with files, that can be removed, moved or updated I will make a snapshot of the specified path(s) and name that snapshot with a timestamp it is made. Then if it happens I did a mess, I can easily restore to a given snapshot point.

I'm looking for a solution besides git and alike tools.

I also wonder if that tool can remember previous state of MySQL database, otherwise I will just have a dump of it at some point.


What you need is LVM. This is a disk abstraction layer unlike the partitions you've been using until now and actually replaces them.

LVM has built-in snapshots which allows you to freeze an existing Logical Volume in time, at any moment, even while the system is running. You can continue to use the original volume normally, but the snapshot volume appears to be an image of the original, frozen in time at the moment you created it. You can use this to get a consistent filesystem image to back up, without shutting down the system. You can also use it to save the state of the system, so that you can later return to that state if you mess things up. You can even mount the snapshot volume and make changes to it, without affecting the original.


Have you tried snapper?

sudo apt-get snapper  


I haven't tried it but it looks promising

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »