chmod 700 to backup tempdir

master
Vincent Zeng 2018-03-22 16:27:35 -04:00
parent 95291397f4
commit 1789fb1ed4
2 changed files with 2 additions and 1 deletions

View File

@ -500,6 +500,7 @@ def process_backup(filename):
if not os.path.exists(backup_path):
subprocess.call(["mkdir", backup_path])
subprocess.call(["chmod", "700", backup_path])
subprocess.call(["tar", "-C", backup_path, "-xf", filename])
backup_entries = os.path.join(backup_path, "entries")

View File

@ -817,7 +817,7 @@ please enter""")
if not os.path.exists(config.BACKUPS):
subprocess.call(["mkdir", config.BACKUPS])
subprocess.call(["cp", backupfile, config.BACKUPS])
print("\nbackup saved!")
print("\nbackup saved! i also put a copy at {backup_dir} for you.".format(backup_dir = config.BACKUPS))
else:
print("""
sorry, something went wrong! please try to address the error and try again.