mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
[Utils] Stop using : in backup's filename - Windows doesn't accept it (#2957)
This commit is contained in:
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 = []
|
||||
|
||||
Reference in New Issue
Block a user