pull/4/head
drunkendog 2022-12-19 17:47:36 +00:00
parent a858268120
commit 30f15932b9
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ salted_hash_value = hashlib.sha512(salted_secret_seed.encode())
with open("backup.conf", "w") as f:
f.write(f"export BORG_REPO='ssh://{hostname}@{server_hostname}.162536.xyz:22/~/backup/docker'\n")
f.write(f"export BORG_PASSPHRASE='{salted_hash_value}'\n")
f.write(f"export BORG_PASSPHRASE='{salted_hash_value.hexdigest()}'\n")
os.system("ssh-keygen -t rsa -q -f \"$HOME/.ssh/id_rsa\" -N \"\"")
os.system(f"ssh-copy-id {hostname}@{server_hostname}.162536.xyz")