1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 05:36:19 +00:00

Remove microseconds from archive name (Fixes #47). Add profile ID to archive name (#46).

This commit is contained in:
Manu 2018-11-26 15:23:50 +08:00
parent bae5c3386f
commit c63c37fed2

View file

@ -103,7 +103,7 @@ def prepare(cls, profile):
cmd.extend(['--exclude-if-present', f.strip()])
# Add repo url and source dirs.
cmd.append(f'{profile.repo.url}::{platform.node()}-{dt.now().isoformat()}')
cmd.append(f"{profile.repo.url}::{platform.node()}-{profile.id}-{dt.now().isoformat(timespec='seconds')}")
for f in SourceDirModel.select().where(SourceDirModel.profile == profile.id):
cmd.append(f.dir)