add function to extract an archive

This commit is contained in:
Andreas Zweili 2016-12-13 13:40:15 +01:00
parent ebe5f89900
commit 1a676abc8e
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ while chosen_activity != 0:
print()
print("Archive mounted at " + mount_point + "/")
print()
if chosen_activity == 4:
archive_name = input("Please enter the archive name: ")
restore_path = input("Please enter the path where you want to
restore to")
os.system('borg extract -v --list ::' + archive_name + " " + restore_path)
elif chosen_activity == 0:
if (not mount_point):
print()