Skip to content

28 comments

Wow this could be great in case i bork my system. I'm sure there are alternatives but I'm glad I was made aware of this.

Edit: nice the author's even do a comparison against alternatives in the full read.me.

16 points

Looks interesting. Will definitely try this out starting from a clean slate when I clean up my laptop at the end of the year.

9 points

Thanks! However, I don't think you need to start with a clean system to use this. After running aconfmgr save, removing all the detritus from the configuration, and applying the resulting configuration, I've significantly cleaned up my system.

5 points

This looks really neat. Thanks for sharing.

one question though. running the program with save for the first time, produced a huge amount of files from such places as /var/ or /usr/lib, even kernel modules seem to backed up.
Would You say that backing up everything is fairly safe? or rather, would it be better to backup mainly /etc/ things?

Basically what Im asking is: which directories do You personally ignore and which do You back up on Your systems?

2 points

This seems really useful. An entry of aconfmgr in the wiki would be good for this project.

5 points

I get a huge quantity of warning of the type:

::: Warning: Skipping file '/boot/grub/grub.cfg' with unknown type 'fichier'. Add to ignore_paths to ignore.

I think there is something wrong going on with the locale (I'm using fr_FR and fichier means file in French ;)

2 points

Pushed a fix for that. All my systems are in English, so please let me know if you encounter other localization-related issues.

11 points

I'm not sure if I'll end up using this, but I really appreciate the effort and well-written README! Like several people here, it made me aware that there are some solutions for various pieces of system config similar to this project.

2 points

It would be nice if it would show the file it's currently scanning. For some reason, it's trying to scan more than four million files on my system and I'm really not sure why. I canceled it after five hours.

1 points

Good idea. I added a --verbose switch (currently just enables showing the last lost file found), can you try it? It's probably getting stuck in a directory that should probably be ignored.

1 points

I got a better idea. aconfmgr will now print a warning upon reaching the 1000'th lost file, mentioning the directory it was in at the time, with a hint on how to ignore it. This avoids the problem that --verbose is not discoverable for this situation.

1 points

Thanks! Turns out it was scanning my btrfs snapshots.

1 points

The Augeas link is broken.

This is a very nice bit of software, and has an approach I would like to get in software that manages multiple computers. NixOS is awesome, but I don't always want to completely break backwards-compatibility and just want to build upon an already-existing system.

1 points

Thank you.

Which Augeas link do you find to be broken?

1 points

The second one, but now that I look at it, it isn't broken. I expected it to point to the homepage, but that's what the first one, which I didn't see at first, does. I was just confused as to why "Augeas" would point to "Inlining file edits."

1 points

Will this pick up any generated .pacnew files and attempt to diff them ? I find myself doing this by hand whenever a new conf is generated after I have modified it, it would be nice if this monitored this and attempted to resolve it.

1 points

It will pick up new .pacnew files, and you will notice that they will have been added to your configuration, but there is currently no support for merging them automatically. If you inline the file edits, you can simply reapply your existing configuration, which would apply your edits on top of the package's latest original configuration files, and delete the .pacnew files. You could also use aconfmgr in combination with pacmarge.

I might add an option to instruct aconfmgr save to register some file edits as diffs, instead of copying the entire file.

2 points

Currently I'm just stowing everything. Maybe I should use this instead.

1 points

aconfmgr doesn't seem to touch home folder at all, stow is still useful for personal dots

1 points

I got some sort of "fatal error", I think because it was trying to scan the swap file I made in my root directory? Now 5 out of the 8 gigabytes on my system are being used, and I am not sure what is taking it up.

I didn't have the conscientiousness to record the exact error message, so I may try it again after a system reboot. :)

1 points

The missing space is probably in /tmp/aconfmgr-*. The program should have printed a warning with a hint on how to ignore the large file it encountered, though.

1 points

Interesting, I'll be checking this out! Hopefully it can replace my homebrew set of shell scripts doing the same in a much inferior way.

1 points

Fully functional package management on Arch?!

I've been waiting for this. I always found the nix package manager and emerge superior to pacman but Arch was a better distribution overall, with this I can get the best of both worlds.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.