Replying to Avatar utxo the webmaster 🧑‍💻

Run this on a cron job on your node and thank me later

#!/bin/bash

# Define variables

TIMESTAMP=$(date +"%b%d%Y_%I%M%p")

BACKUP_FILE="channel_backup_$TIMESTAMP.backup"

S3_BUCKET="your-s3-bucket-name"

S3_PATH="s3://$S3_BUCKET/$BACKUP_FILE"

# Export the channel backup

lncli --network signet exportchanbackup --all --output_file $BACKUP_FILE

# Upload the backup to Amazon S3

aws s3 cp $BACKUP_FILE $S3_PATH

# Clean up the local backup file

rm $BACKUP_FILE

Avatar
ponymontana💜⚡ 1y ago

mmmm first lets make it an agnostic #!/bin/sh then make it cp into a gpg encrypted pass file then git push the password-store repository and now is gone encrypted on all device that git pull the password-store repo and have the gpg to decrypt it

Reply to this note

Please Login to reply.

Discussion

No replies yet.