Init backup
This commit is contained in:
parent
0b363c61aa
commit
d995cfc671
3 changed files with 72 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
from getpass import getpass
|
||||
|
||||
import privy
|
||||
|
||||
def get_secret(borg_passphrase):
|
||||
password = getpass('Please provide the secret password: ')
|
||||
return privy.peek(borg_passphrase, password)
|
||||
|
||||
b_borg_passphrase = get_secret(b'1$2$o9juQh0wvpWhOsXHhh-xyimKIpWAUOk9MgLeSHiM_NA=$Z0FBQUFBQmdGb3U0RmNfaDdYYkVfU1pvdW9SbXFJMC1GN2FsSXJoTVpkVENaRlN1V2ZiOVNpalk2Z28zS3R5bFRWMkh3VnQ4cFhIZVhtWVphWDhwQi00ejJsWS1pMkZMSGhvTnlVTi15aTBLejdTTHVjdGZLYUtqRUY0Wm9Lc19ISTZ3Wkc1SHJFLWNIMUNtekFXMzFBV1BMN1hNZlludG5xMU9WdkNPM3lwaDZfWFpESExaVHdFPQ==')
|
||||
borg_passphrase = b_borg_passphrase.decode('utf-8')
|
Reference in a new issue