mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
parent
be767478f4
commit
fca7686701
@ -878,7 +878,7 @@ class Core:
|
|||||||
if data_dir.exists():
|
if data_dir.exists():
|
||||||
home = data_dir.home()
|
home = data_dir.home()
|
||||||
backup_file = home / backup_filename
|
backup_file = home / backup_filename
|
||||||
os.chdir(data_dir.parent)
|
os.chdir(str(data_dir.parent))
|
||||||
with tarfile.open(str(backup_file), "w:gz") as tar:
|
with tarfile.open(str(backup_file), "w:gz") as tar:
|
||||||
tar.add(data_dir.stem)
|
tar.add(data_dir.stem)
|
||||||
await ctx.send(_("A backup has been made of this instance. It is at {}.").format(
|
await ctx.send(_("A backup has been made of this instance. It is at {}.").format(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user