Add support for TOML config files

This commit is contained in:
Eduard Tolosa 2024-02-05 02:36:33 -05:00
parent c32742b355
commit bac3a8c69e
8 changed files with 134 additions and 18 deletions

View file

@ -1,12 +1,12 @@
# Example configuration file for rustnapshot
# Example configuration file for rusnapshot
# These are all the current available options
# Snapshots directory
dest_dir = "/mnt/defvol/_snapshots/"
# Directory to be snapshoted
# Directory to be snapshot-ed
source_dir = "/mnt/defvol/_active/root/"
# SQLite database file PATH, created if no exists, recommended to be in the snapshots dir
database_file = "/mnt/defvol/_snapshots/rustnapshot.sqlite"
database_file = "/mnt/defvol/_snapshots/rusnapshot.sqlite"
# Prefix for the snapshots, they will be saved in the format prefix-$current_date
snapshot_prefix = "root"
# Snapshots identifier

View file

@ -1,5 +1,5 @@
dest_dir = "/mnt/defvol/_snapshots/"
source_dir = "/home/"
database_file = "/mnt/defvol/_snapshots/rustnapshot.sqlite"
database_file = "/mnt/defvol/_snapshots/rusnapshot.sqlite"
snapshot_prefix = "home"
keep_only = "2"

View file

@ -1,5 +1,5 @@
dest_dir = "/mnt/defvol/_snapshots/"
source_dir = "/"
database_file = "/mnt/defvol/_snapshots/rustnapshot.sqlite"
database_file = "/mnt/defvol/_snapshots/rusnapshot.sqlite"
snapshot_prefix = "root"
keep_only = "2"