making backups more private

master
Vincent Zeng 2018-03-22 23:53:24 -04:00
parent 8508854fb3
commit 2193f4fcd4
1 changed files with 1 additions and 0 deletions

View File

@ -816,6 +816,7 @@ please enter""")
subprocess.call(["chmod", "600", backupfile]) subprocess.call(["chmod", "600", backupfile])
if not os.path.exists(config.BACKUPS): if not os.path.exists(config.BACKUPS):
subprocess.call(["mkdir", config.BACKUPS]) subprocess.call(["mkdir", config.BACKUPS])
subprocess.call(["chmod", "700", config.BACKUPS])
subprocess.call(["cp", backupfile, config.BACKUPS]) subprocess.call(["cp", backupfile, config.BACKUPS])
print("\nbackup saved! i also put a copy at {backup_dir} for you.".format(backup_dir = config.BACKUPS)) print("\nbackup saved! i also put a copy at {backup_dir} for you.".format(backup_dir = config.BACKUPS))
else: else: