garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.71k stars 49 forks source link

Add an option to backup Linux servers via SFTP #489

Closed insinfo closed 1 month ago

insinfo commented 2 months ago

Add an option to backup Linux servers via SFTP, I currently need a tool that can backup several Debian Linux servers via SFTP without having to install anything on the server, I currently do this via several scripts which is not a very good solution.

inode64 commented 2 months ago

Restic includes SFTP support as standard https://restic.readthedocs.io/en/latest/030_preparing_a_new_repo.html#sftp

garethgeorge commented 2 months ago

Afraid that this isn't something well supported by restic's model -- at the very least restic would need to run on the remote machines. The second technical challenge is that backrest uses env vars to propagate settings to restic which it forks. It would need a fairly different execution model to do this over SFTP (not as simple as just forwarding the command).

inode64 commented 2 months ago

Another option is https://github.com/restic/rest-server I use it for Windows clients

garethgeorge commented 1 month ago

I'm going to close this as not planned for the time being, I think the right approach here is to run backrest on each machine you'd like to backup.