Open eauchat opened 3 years ago
Can you elaborate what you did for borg to use a custom location ?
Hmm I believe now borg_ynh
allows to use any custom location, so in borg_ynh
I'm having as repository: ssh://ssh_user@targetdomain.tld/~/someCustomRepo
.
I don't remember having to do much on borgserver_ynh
side, just updating .ssh/authorized_keys
with the appropriate repository path.
I think that's how far I went in "customizing".
Also, I had to customize the repository because I'm having two different repositories receiving backups on borgserver_ynh
side (wanted to keep them separated).
To be crystal clear, I have two servers to backup (A and B), each has borg installed, their repositories are:
ssh://ssh_user@backupserver.tld/~/serverA
ssh://ssh_user@backupserver.tld/~/serverB
In the backup server, I have borgserver_ynh
installed, and /home/ssh_user/.ssh/authorized_keys
looks like this:
ssh-ed25519 XXXXXXXXX personal@computer
command="borg serve --storage-quota XXG --restrict-to-repository /home/ssh_user/serverA",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc ssh-ed25519 XXXXXXXXX root@serverA
command="borg serve --storage-quota XXG --restrict-to-repository /home/ssh_user/serverB",no-pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-user-rc ssh-ed25519 XXXXXXXXX root@serverB
Eh yeah I guess we just gotta be clever in the cron job generation here https://github.com/YunoHost-Apps/borgserver_ynh/blob/testing/conf/monitor-backup#L2 and include the full path instead of /home/__SSH_USER__
Proposed a patch to resolve this: #46
Describe the bug
Twice a day (at 9AM and 8PM) the admin email is receiving the following mails:
Context
borg
is not sending backups to the/home/borgserv_sshuser/backup
directory, but to some custom directories (which works fine)Expected behavior
Not receiving the error mails. Being able to explain to
borgserver
the paths to the repos, so that it can check that backups are being done properly.