The purpose of this program is to create a daemon that would run in the background and monitor a folder. Inside the folder, the application looks for new files or edits and creates copies and encrypted copies stored in .secure and .versions folders.
When the daemon starts, it reads a config file which is TOML compliant using RudeConfig.
The daemon reads the config file and determines that 3 copies should be recorded. From the log file, we see old files are removed.
The program stores file copies with date-stamps in .versions and encrypted ones in .secure folders.
A separate program decrypts the encrypted files.
The program receives a signal, re-reads the config file, and re-configures accordingly.
The program writes to a log file. In this log, we see a signal was caught and some settings were reconfigured.