fix the interface
This commit is contained in:
parent
3f652c28cf
commit
917d354c58
|
@ -33,8 +33,8 @@ os.environ['BORG_PASSPHRASE'] = password
|
||||||
while chosen_activity != 0:
|
while chosen_activity != 0:
|
||||||
print("What would you like to do?")
|
print("What would you like to do?")
|
||||||
# Start the chosen activity and go back to the activity selector.
|
# Start the chosen activity and go back to the activity selector.
|
||||||
print("1: List Backups, 2: Show archive details, 3: Mount Archive,")
|
print("1: List Backups, 2: Show archive details, 3: Mount Archive,"
|
||||||
print("4: Restore Backup, 0: Exit")
|
"4: Restore Backup, 0: Exit")
|
||||||
try:
|
try:
|
||||||
chosen_activity = int(input("Choose the desired activity: "))
|
chosen_activity = int(input("Choose the desired activity: "))
|
||||||
if chosen_activity == 1:
|
if chosen_activity == 1:
|
||||||
|
@ -58,8 +58,8 @@ while chosen_activity != 0:
|
||||||
print()
|
print()
|
||||||
if chosen_activity == 4:
|
if chosen_activity == 4:
|
||||||
archive_name = input("Please enter the archive name: ")
|
archive_name = input("Please enter the archive name: ")
|
||||||
restore_path = input("Please enter the path where you want to\
|
restore_path = input("Please enter the path where you want to"
|
||||||
restore to")
|
"restore to")
|
||||||
os.system('borg extract -v --list ::'
|
os.system('borg extract -v --list ::'
|
||||||
+ archive_name
|
+ archive_name
|
||||||
+ " "
|
+ " "
|
||||||
|
|
Reference in New Issue