fix a EOL error

This commit is contained in:
Andreas Zweili 2016-12-13 13:52:32 +01:00
parent 1a676abc8e
commit 9eb5dd9c1b
1 changed files with 7 additions and 3 deletions

View File

@ -30,7 +30,8 @@ os.environ['BORG_PASSPHRASE'] = password
while chosen_activity != 0:
print("What would you like to do?")
# Start the chosen activity and go back to the activity selector.
print("1: List Backups, 2: Show archive details, 3: Mount Archive, 0: Exit")
print("1: List Backups, 2: Show archive details, 3: Mount Archive,\
4: Restore Backup, 0: Exit")
try:
chosen_activity = int(input("Choose the desired activity: "))
if chosen_activity == 1:
@ -54,9 +55,12 @@ while chosen_activity != 0:
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_path = input("Please enter the path where you want to\
restore to")
os.system('borg extract -v --list ::' + archive_name + " " + restore_path)
os.system('borg extract -v --list ::'
+ archive_name
+ " "
+ restore_path)
elif chosen_activity == 0:
if (not mount_point):
print()