Use Fedder's TrueNAS for Restic backups #153
|
@ -31,6 +31,14 @@
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
state: touch
|
state: touch
|
||||||
|
|
||||||
|
- name: Create SSH config
|
||||||
|
template:
|
||||||
|
src: restic.ssh.config.j2
|
||||||
|
dest: "{{ services.restic.volume_folder }}/ssh/config"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0600'
|
||||||
samsapti marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
- name: Setup restic backup
|
- name: Setup restic backup
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_name: restic_backup
|
project_name: restic_backup
|
||||||
|
|
3
roles/docker/templates/restic.ssh.config.j2
Normal file
3
roles/docker/templates/restic.ssh.config.j2
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Host {{ services.restic.domain }}
|
||||||
|
ServerAliveInterval 60
|
||||||
|
ServerAliveCountMax 240
|
Loading…
Reference in a new issue
Isn't sftp urls
sftp://user@host/path/from/root
?No, the URL format is actually
sftp://user@host[:port]//path/from/root
(double slash) orsftp://user@host[:port]/relative/path/to/home
, but Restic only requires the URL format in case of a specified port number or an IPv6 address. If not, it only wants thesftp:
prefix, followed by the format you would use withscp
,sftp:user@host:/path/to/repo
.https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#sftp