Avoid possible name collisions.

This commit is contained in:
Edu4rdSHL 2021-04-16 12:42:36 -05:00
parent 1cef63bacf
commit f003189dab
No known key found for this signature in database
GPG key ID: 3A574A4009F553E5
2 changed files with 11 additions and 1 deletions

View file

@ -1,2 +1,12 @@
# rusnapshot
Simple and handy btrfs snapshoting tool. Supports scheduled snapshots and restoring. Backed with SQLite.
# Features
- Allows you to specify the origin and destination of snapshots at will of the user.
- Track snapshots using SQLite as backend database.
- You can create snapshots of the volumes you want simply by using different configuration templates.
- You can use the same database for everything.
- You can specify the prefix for each group of snapshots.
- Supports restoration of snapshots.
- Automatic snapshots cleanup.

View file

@ -11,7 +11,7 @@ pub fn manage_creation(args: &mut Args) -> Result<()> {
args.snapshot_name = format!(
"{}-{}",
args.snapshot_prefix,
Utc::now().format("%Y-%m-%d-%H-%M-%S")
Utc::now().format("%Y-%m-%d-%H-%M-%S-%6f")
);
args.snapshot_id = format!("{:?}", md5::compute(&args.snapshot_name));
if operations::take_snapshot(args) {