Currently incomplete, 2022-11-05
# Use the command below to find which device your storage disk is $ df -h # You'll need to enter the password of the storage disk here $ sudo cryptsetup luksOpen /dev/$storage_disk $device_name $ mkdir ~/$device_name $ sudo mount /dev/mapper/$device_name ~/$device_name
And then use the following the instantiate and run the backup
# Must specify full paths--no tildes allowed! # I'm using 192.168.1.2 as a placeholder for the ARM SBC I'm using as a home server/NAS # but that could feasibly use whatever drive you want $ restic -r sftp:[email protected]:/home/username/hdd/restic_backup init $ restic -r sftp:[email protected]:/home/username/hdd/restic_backup --verbose backup /home/username/ --exclude="*/target/*" --exclude="*/build/*" --exclude="*.iso" --exclude="*.deb;"