R
R
Roman2019-04-15 16:37:16
Backup
Roman, 2019-04-15 16:37:16

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

3 answer(s)
I
Ivan Bogachev, 2019-04-15
@procode

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 showmanualorder 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.

R
Ronald McDonald, 2019-04-15
@Zoominger

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.

M
McBernar, 2019-04-15
@McBernar

You can also take a snapshot of the system. Any normal cloud gives this opportunity.
Spoiled - rolled from the picture and drove again. Yes, not as elegant as with Git, but nonetheless.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question