Update prefered database file location.

This commit is contained in:
Eduard Tolosa 2024-02-05 23:22:10 -05:00
parent 07ae19da1b
commit 4648c12379
4 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ dest_dir = "/.rusnapshot"
# Directory to be snapshot-ed
source_dir = "/"
# SQLite database file PATH where snapshots metadata will be stored. Created if not exists
database_file = "/var/lib/rusnapshot/rusnapshot.db"
database_file = "/.rusnapshot/rusnapshot.db"
# Prefix for the snapshots, they will be saved in the format prefix-$current_date
snapshot_prefix = "root"
# Snapshots identifier

View file

@ -3,7 +3,7 @@ dest_dir = "/.rusnapshot"
# Directory to be snapshot-ed
source_dir = "/home"
# SQLite database file PATH where snapshots metadata will be stored. Created if not exists
database_file = "/var/lib/rusnapshot/rusnapshot.db"
database_file = "/.rusnapshot/rusnapshot.db"
# Prefix for the snapshots, they will be saved in the format prefix-$current_date
snapshot_prefix = "home"
# Last snapshots to keep. If prefix is specified then only the snapshots with that prefix will be deleted

View file

@ -3,7 +3,7 @@ dest_dir = "/.rusnapshot"
# Directory to be snapshot-ed
source_dir = "/"
# SQLite database file PATH where snapshots metadata will be stored. Created if not exists
database_file = "/var/lib/rusnapshot/rusnapshot.db"
database_file = "/.rusnapshot/rusnapshot.db"
# Prefix for the snapshots, they will be saved in the format prefix-$current_date
snapshot_prefix = "root"
# Last snapshots to keep. If prefix is specified then only the snapshots with that prefix will be deleted

View file

@ -28,7 +28,7 @@ pub struct Args {
short = 'd',
long = "dfile",
env = "RUSNAPSHOT_DB_FILE",
default_value = "/var/lib/rusnapshot/rusnapshot.db"
default_value = "/.rusnapshot/rusnapshot.db"
)]
pub database_file: String,
/// Prefix for the snapshot name.