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:
parent
196e40e35a
commit
d971ef8d4f
|
@ -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()
|
||||
|
|
Reference in New Issue