aboutsummaryrefslogtreecommitdiff
path: root/tool/aio.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-27 10:04:03 +0800
committercrupest <crupest@outlook.com>2022-11-27 10:04:03 +0800
commitb5b843394bd1b380e790e3a908345d1702078da4 (patch)
tree4ad03aaf836c46c7479d9454223ca2ff059035d6 /tool/aio.py
parent99012b7b504831a6f40da954ef2f69fede3a612e (diff)
downloadcrupest-b5b843394bd1b380e790e3a908345d1702078da4.tar.gz
crupest-b5b843394bd1b380e790e3a908345d1702078da4.tar.bz2
crupest-b5b843394bd1b380e790e3a908345d1702078da4.zip
Add message for backup in aio.
Diffstat (limited to 'tool/aio.py')
-rwxr-xr-xtool/aio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/aio.py b/tool/aio.py
index daf22c6..0abf581 100755
--- a/tool/aio.py
+++ b/tool/aio.py
@@ -126,6 +126,7 @@ if args.action == "backup":
url = download_path
subprocess.run(
["sudo", "tar", "-xJf", url, "-C", project_dir], check=True)
+ console.print("Succeeded to restore data.", style="green")
exit(0)
elif not args.backup is None:
if args.backup[0] is None:
@@ -146,6 +147,7 @@ if args.action == "backup":
["sudo", "tar", "-cJf", path, "data", "-C", project_dir],
check=True
)
+ console.print("Succeeded to backup data.", style="green")
exit(0)
else:
console.print(