Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

General discussion • Re: How to encrypt Raspberry Pi [data] for the purposes of off-site backup?

$
0
0
I think the tidiest solution is to use encfs so it creates a virtual drive which the encrypted version and you rsync/backup from that encrypted virtual drive.
`encfs` certainly looks like a viable option, but as someone who tends to understand things by reading documentation and walk-throughs, there's just no comparison between the docs for encfs and restic.

Right now I just need to figure out how to not store the restic repo password in my bash script. Not really a massive issue because it's stored on my computer, but it's wrong in principle. I hope there's a workaround because this script will do a backup via a cronjob every day.

Code:

#!/bin/bash...DESTINATION_IP="10.0.0.100"DESTINATION_USERNAME="pi"REPO_NAME="test-backup_-/v1"REPO_PASSWORD="tester123"DESTINATION="sftp:${DESTINATION_USERNAME}@${DESTINATION_IP}:${REPO_NAME}"export RESTIC_PASSWORD=${REPO_PASSWORD}export RESTIC_REPOSITORY=${DESTINATION}...

Statistics: Posted by bassamanator — Tue Apr 23, 2024 5:11 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles