mirror of
https://github.com/edu4rdshl/rusnapshot.git
synced 2026-07-17 23:24:55 +00:00
Avoid possible name collisions.
This commit is contained in:
parent
1cef63bacf
commit
f003189dab
2 changed files with 11 additions and 1 deletions
10
README.md
10
README.md
|
|
@ -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.
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue