chmod 700 to backup tempdir

This commit is contained in:
Vincent Zeng committed 2018-03-22 16:27:35 -04:00
1 parent 95291397f4
commit 1789fb1ed4
2 files changed
+2 -1

No files matched your search

+1
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")
+1 -1
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.