Answer the question
In order to leave comments, you need to log in
Is there any analogue of Git but for the system (Ubuntu) as a whole - so that you can roll back after the changes?
Hello.
Sometimes, as you set up Ubuntu Server, you want to roll back changes with a command or two, as you do with web development, for example, using Git.
Is this even possible?
Are there any programs for this?
//please don't write "just copy system folders and that's it..." or something like that, if it was easy for me - I wouldn't ask such a question.
Thank you.
Answer the question
In order to leave comments, you need to log in
Usually it is enough to store configs from /etc
, for this you can take this very git (it is very convenient to add etckeeper as well ). I would also separately commit the output of the command to a file in apt-mark showmanual
order to know which packages were installed by hand and, in which case, not to remember what was called. Unless you're doing something terribly specific, manually editing files all over the system, then this should be enough. Snapshots are a last resort if you really want to save the entire system.
Snapshots are recommended. LVM has it, BTRFS has it. It's pretty radical, it's like saving in games.
It would be wise to simply execute commands that are the reverse of those that were performed before.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question