mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Utils] Stop using : in backup's filename - Windows doesn't accept it (#2957)
This commit is contained in:
parent
2c8152606c
commit
26cc85806e
1
changelog.d/2954.bugfix.rst
Normal file
1
changelog.d/2954.bugfix.rst
Normal file
@ -0,0 +1 @@
|
||||
Stop using `:` character in backup's filename - Windows doesn't accept it
|
||||
@ -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 = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user