Update 'backup/generate-config.py'
parent
c1fd28a52f
commit
8138cffb25
|
@ -17,7 +17,7 @@ secret_seed = getpass.getpass("Enter passphrase: ").rstrip()
|
||||||
salted_secret_seed = hostname + secret_seed
|
salted_secret_seed = hostname + secret_seed
|
||||||
salted_hash_value = hashlib.sha512(salted_secret_seed.encode())
|
salted_hash_value = hashlib.sha512(salted_secret_seed.encode())
|
||||||
|
|
||||||
with open("backup.conf", "w") as f:
|
with open("/etc/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_REPO='ssh://{hostname}@{server_hostname}.162536.xyz:22/~/backup/docker'\n")
|
||||||
f.write(f"export BORG_PASSPHRASE='{salted_hash_value.hexdigest()}'\n")
|
f.write(f"export BORG_PASSPHRASE='{salted_hash_value.hexdigest()}'\n")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue