diff --git a/examples/config-templates/config-all.toml b/examples/config-templates/config-all.toml index ffa5a50..50f148f 100644 --- a/examples/config-templates/config-all.toml +++ b/examples/config-templates/config-all.toml @@ -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 diff --git a/examples/config-templates/config-home.toml b/examples/config-templates/config-home.toml index 4a55c86..f139f97 100644 --- a/examples/config-templates/config-home.toml +++ b/examples/config-templates/config-home.toml @@ -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 diff --git a/examples/config-templates/config-root.toml b/examples/config-templates/config-root.toml index 5f63768..10e0227 100644 --- a/examples/config-templates/config-root.toml +++ b/examples/config-templates/config-root.toml @@ -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 diff --git a/src/args.rs b/src/args.rs index 1e9f371..43ed3dd 100644 --- a/src/args.rs +++ b/src/args.rs @@ -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.