▲ 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

Get an SSD for performance, right?

/ is on a (SATA) SSD, /media/data is on a spinning HDD. Look at the read rate.

u/iacchi — 9 days ago
▲ 1 r/restic

Asked to keep only 1 snapshot, but I have two. Is it safe to remove one?

Hello,

I'm very new to restic, and I need some help to figure out how to handle it safely. In today's issue, I initialised a repo and initially I backed up to it a single folder (and subfolders, let's name it folder1) from the source, to see how it would work. After this first test, I added two more folders to the backup (folder2 and folder3). after running the backup operation, I ran "forget --keep-last 1 --prune" both to test the command and to clear some space (I removed some files in source in the meantime). In my mind, this would clear everything and only keep one snapshot with the three folders. However, this is not what happened. If I issue the "snapshots" command on the remote repo, I have two snapshots listed, one with just folder1, and another with folder1, folder2, and folder3 (so, folder1 is in both snapshots). My question is: is it safe to remove the snapshot with just folder1? The data should remain in the repository because it's listed also in the other snapshot with all three folders, right?

reddit.com
u/iacchi — 14 days ago

Shared hosting: mail server on one machine, inbox storage in another. Is this feasible

Hello,

I have two plans subscribed with my current hosting provider. One is for shared hosting, one is a storagebox. The shared hosting machine has a mail server and I can configure in principle unlimited mailboxes in it. The storagebox... I'm not quite sure (my hosting provider said "The storageboxes can be used for inbox storage, however it is not possible to send e-mails from this service."), but the directadmin panel says max 2 configurable email accounts.

What I would like to do is to use the shared hosting machine to act as a mail server (send/receive(?) emails, access them with imap) and the storagebox (with much more space in it) to physically store the inboxes with all emails/attachments. Again my hosting provider said that this should be feasible, and that "The MX record should point to the storagebox and A Record for mail domain should point to the shared hosting.", but the more I think about it, the less this makes sense. If the email accounts are configured on the shared server, how is the storagebox server going to know where to put the emails once it receives them as per the MX record?

I even thought about being cheeky and connecting the shared hosting to the storagebox via ssh and using the remote folder as the folder where to store the emails (Maildir folder on my account), but the server doesn't have sshfs, so that's out of the question.

Is what I want to do actually feasible at all? How about with just correct DNS settings?

reddit.com
u/iacchi — 17 days ago