r/restic

▲ 1 r/restic

Restic via ssh: chain multiple Restic operations with single ssh key password input?

Hello,

I use Restic to backup my laptop data to a remote server via ssh (not scheduled, I execute the script manually). I put everything in a bash script which does a sequence of restic backup, forget and check. I connect to my remote server via ssh with a key, and the key is password-protected (and I intend to keep it that way; I also want to avoid writing the password anywhere on file for obvious reasons). The problem I currently have is that when I run th script, I'm asked for the ssh password three times (once for each operation), but I don't know how long the backup operation will take (I usually execute the script in a shell and then minimise that window to carry on with my work) and if I wait too much to give the password again for the second operation once the backup is finished, the connection dies and I have to restart from scratch.

My question then is: is there a way to chain the three operations (backup, forget, and check) in a single restic input, so that I have to enter the ssh password only once? Other solutions that lead to the same result (with the password never visible in plain text in the cli or on file) are also well accepted. Thanks in advance for the help!

reddit.com
u/iacchi — 8 days ago
▲ 34 r/restic+2 crossposts

How should I back up my 45 GB Immich server with Restic + Backblaze?

Hello guys, I have an Immich server with a total size of around 45 GB, with the database, uploads, and everything else stored under a single directory. I want to back it up to Backblaze using Restic. How should I go about doing it?

I have some idea of how to do it. I was thinking about selectively backing up the upload directory and database dumps instead of the entire directory. Would that be a better approach, or should I just let Restic back up the entire Immich directory?

I also have fairly limited upload bandwidth (around 5 Mb/s), so I’d like the backup process to be able to run gradually in the background and resume if my PC or connection is restarted.

What do you guys think? How are you running your Immich backups, and is there anything specific I should make sure to back up so that I can fully restore Immich if my PC dies?

Also, I’d love to know about your backup strategies.

reddit.com
u/Emotional_Gap_hd — 11 days ago