You are not logged in.

#1 2015-12-26 11:19:20

shallpion
Member
Registered: 2009-12-12
Posts: 65

is there a proper way to backup entire systemd settings?

Hi, hopefully I am not asking a stupid question. Sometimes I got a little dizzy about all the services/network things I have configured and enabled in systemd and I had to make a personal note about what I have done so far, so when I move to build, for example, a virtual machine image of arch to test something I could replicate my current systemd settings by following my personal note. But it is a little tedious.

I wonder if there is a recommended way, or any good experience to show my current systemctl status in a complete way so I can back them up periodically. I understand I could simply backup the output for systemctl combined with things like list-unit-files or --all etc. But sometimes I also want to backup, or at least keep a note on how many files systemd has loaded, so I can at least identify those ones written by me. For example I have numerous .network, .netdev files under /etc/systemd/network folder, a bunch of service.d/ folders under /etc/systemd/system/ folder and a lot more. They all add up to a huge mess. Sometimes I really doubt if there exists any better way to keep such a note than using pencil and paper (or a text editor), may be just tarball then entire /etc/systemd folder?

Any suggestions would be greatly appreciated!

Offline

#2 2015-12-26 11:32:28

ms
Member
From: Bandung, Indonesia
Registered: 2010-07-28
Posts: 88
Website

Re: is there a proper way to backup entire systemd settings?

Ever heard of term "configuration management" (CM) tool? One of them, which I use, is called Ansible, developed using Python acquired by RedHat.

It was used by devops people to manage remote machines, installing packages, configuration files, etc. but does not mean it cannot be used for local machine.

Combine it with some version control, you can create a history of your machine configuration.

Good luck on exploring it!

Offline

#3 2015-12-26 19:51:51

shallpion
Member
Registered: 2009-12-12
Posts: 65

Re: is there a proper way to backup entire systemd settings?

Gee, I tried to use git to backup a bunch of config file before but since it was a small group of files I eventually ended up writing a small script to do the work. It looks like I need to take out the big gun this time. Thank you for your suggestions and I shall definitely look into those!

Offline

Board footer

Powered by FluxBB