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
Liberty Farmer 1y ago

While this seems like a good one, probably shouldn't have people just run random bash scripts they see on nostr.

πŸ˜‚πŸ˜‚πŸ˜‚

Reply to this note

Please Login to reply.

Discussion

Avatar
Majere 1y ago

And here we see the utility & importance of code literacy

Thread collapsed
Avatar
BrianFitzwater 1y ago

And, that’s why I read the comments before acting. Thank you.

Thread collapsed