[Utils] Stop using : in backup's filename - Windows doesn't accept it (#2957)

This commit is contained in:
jack1142 2019-08-28 04:01:02 +02:00 committed by Toby Harradine
parent 2c8152606c
commit 26cc85806e
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Stop using `:` character in backup's filename - Windows doesn't accept it

View File

@ -410,7 +410,7 @@ async def create_backup(dest: Path = Path.home()) -> Optional[Path]:
return
dest.mkdir(parents=True, exist_ok=True)
timestr = datetime.utcnow().isoformat(timespec="minutes")
timestr = datetime.utcnow().strftime("%Y-%m-%dT%H-%M-%S")
backup_fpath = dest / f"redv3_{data_manager.instance_name}_{timestr}.tar.gz"
to_backup = []