CONFIGSNAP(1)
π CONFIGSNAP π
okay so bestie, welcome to CONFIGSNAP(1) β that's the User Commands manual, and we're on version 0.20.1 β¨ she takes a lil snapshot of your system state so you can compare vibes later, and honestly? iconic behaviour. let's get into it π«Ά
πΈ NAME πΈ
configsnap β manual page for configsnap 0.20.1. that's literally her whole government name, no notes π
β¨ SYNOPSIS β¨
configsnap [options]
...that's the entire summoning ritual. go off πͺ
π¦ DESCRIPTION π¦
okay so here's the tea β β configsnap records useful system state information πΈ like, it jots down what your system was giving at a given moment. and if you run it with a PHASE containing "post" or "rollback", she'll compare what she just grabbed against the previous state. diff queen behaviour, we stan. π₯
and if you want extra stuff in the mix β more files, more directories, more commands β you can hand her an optional file, /etc/configsnap/additional.conf, and she'll register those too during configsnap execution. customizable. main character energy. π
π OPTIONS π
-h,--helpβ show this help message and exit. the "wait what do you even do" button π«Ά-w,--overwriteβ if phase files already exist in the tag dir, remove previously collected data with that tag. out with the old, bestie ποΈ-a,--archiveβ pack output files into a tar archive. a cute lil bundle π-v,--verboseβ print debug info. she will NOT stop talking and we love that for her π£οΈ-V,--versionβ print version.-s,--silentβ no output to stdout. quiet luxury, she's mysterious now π€«--force-compareβ Force a comparison after collecting data. yeah she's comparing whether you asked nicely or not π-t TAG,--tag=TAGβ tag identifer (e.g. a ticket number). label your lil snapshot π·οΈ-d BASEDIR,--basedir=BASEDIRβ base directory to store output. where the receipts live π-p PHASE,--phase=PHASEβ phase this is being used for. Can be any string. Phases containingpostorrollbackwill perform diffs. okay this one is the whole plot twist β¨-C,--compare-onlyβ Compare existing files with tags specified with--preand--phase. no collecting, just comparing β she's in her analysis era π--pre=PRE_SUFFIXβ suffix for files captured at previous state, for comparison.-c CONFIG,--config=CONFIGβ additional config file to use. Setting this will overwrite default.
β οΈ heads up on that last one: setting-c CONFIG/--config=CONFIGoverwrites the default. it does not politely add to it. she's replacing. periodt.
ποΈ FILES ποΈ
/etc/configsnap/additional.confβ Optional configuration file to define additional command output and files to collect.
now the part where you actually have to pay attention π β Commands are all run as root, so the custom collection configuration file must be owned by root and not read or writable by other users. like, fr fr, do not play with this one bestie, that's a real security thing π¨ The file format is:
All custom file collections in the additional.conf file must begin with a "[section]" which contains the following options.
Type=
Can take values Command, File, or Directory depending on the action that needs to be performed.
- If
Type=Commandthen the output from the specified command will be save to a file named after the section. The command must be specified using the full path to the executable. e.g./bin/ss -tanp.Commandsupports several additional configuration options. - If
Type=Filethen the specified file will be save to the backup directory with suffix matching the stage. The full path to the file must be used.Type=Filesupports the sameFailOkandCompareoptions asCommand. - If
Type=Directorythen the contents of the directory will be a subfolder of the same name within the backup directory. The path to the directory should include a trailing/.Directorysupports theFailOk,Compare(seeType=Command), and the following.
Sort=
Whether to sort the output of the command, (default: False)
FailOk=
Report errors when configsnap runs this section, (default: False)
Compare=
Produce a diff between the pre/post files when running configsnap, (default: False)
File_Pattern=
Rather than saving every file in a directory, backup only ones matching the Python regex pattern, (default: .*). See Examples below.
Examples
# Recording the output of a command into a "psspecial.<phase>" file containing the output.
[psspecial]
Type: command
Command: /bin/ps -aux
Compare: True
# Recording an additional file, stored as "debconf.<phase>"
[debconf.conf]
Type: file
File: /etc/debconf.conf
Failok: True
# Recursively Recording all files from /etc/ssh/ directory, with sub-files appended with ".<phase>".
[ssh]
Type: directory
Directory: /etc/ssh/
# Recording all files from /etc/fail2ban/ directory matching '.*\.local$', with sub-files appended with ".<phase>"
[fail2ban]
Type: directory
Directory: /etc/fail2ban
File_Pattern: .*\.local$
and that's the whole page bestie, you ate that π this was configsnap 0.20.1, dated July 2025 β go snapshot something and feel powerful. mwah. π
β¨
π¦ where this page comes from
- fedora 43: configsnap 0.20.1-13.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms