fix the restore function

borg always restores to the current working directory. Because of this
I've added a command which navigates to the restore path.
This commit is contained in:
Andreas Zweili 2016-12-13 14:37:46 +01:00
parent 196e40e35a
commit d971ef8d4f
1 changed files with 2 additions and 4 deletions

View File

@ -60,10 +60,8 @@ while chosen_activity != 0:
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)
os.chdir(restore_path)
os.system('borg extract -v --list ::'+ archive_name)
elif chosen_activity == 0:
if (not mount_point):
print()