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
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class BorgCreateThread(BorgThread):
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)