: move from scw s3 to sftp hetzner storage box

This commit is contained in:
VC
2025-01-06 16:56:58 +01:00
parent b41d2b4987
commit 91ec47fbaf
4 changed files with 17 additions and 12 deletions

View File

@@ -11,4 +11,4 @@ restic_aws_secret_access_key: !vault |
39653839646661356136306233653263386532616237326431366262343633613863353934626665 39653839646661356136306233653263386532616237326431366262343633613863353934626665
38376163613837626435373134393630316235313032353738643537303162643538353966613833 38376163613837626435373134393630316235313032353738643537303162643538353966613833
34333735663939396433 34333735663939396433
restic_s3_url: "http://backup.mateu.be:3900/backup" restic_s3_url: "s3:http://backup.mateu.be:3900/backup"

View File

@@ -5,13 +5,6 @@ restic_backup_path:
restic_backup_hour: 6 restic_backup_hour: 6
restic_backup_minute: 45 restic_backup_minute: 45
restic_aws_access_key_id: "SCW0VAFXE5MN9N8KVHTQ" restic_aws_access_key_id: ""
restic_aws_secret_access_key: !vault | restic_aws_secret_access_key: ""
$ANSIBLE_VAULT;1.1;AES256 restic_s3_url: "sftp://u441453@u441453.your-storagebox.de//backup"
33656263333731333833613461336230626332666534376235643735373862663530393433396130
6161343663633037663033613135333232393364643533320a383630363938313435356261396662
36303063616264383530643638366332323061333835376131323666633234313833353662626438
3235353961303739390a323332376235363734373838613632376232383861613761616437316564
61333532656135333731313561663062323133613662373061666266383031343964623838336264
3936393838396163626438303962313931333165386363666139
restic_s3_url: "https://s3.fr-par.scw.cloud/backup-libertus"

View File

@@ -154,6 +154,18 @@ config rule
option dest_port '80 443' option dest_port '80 443'
option target 'ACCEPT' option target 'ACCEPT'
# SSH to Storage Box OUT
config rule
option name 'Allow-OUTPUT-SSH-Hetzner'
option src 'dmz'
list proto 'tcp'
option dest 'wan'
option dest_port '22'
option src_ip '{{ hostvars['frederica.dmz.mateu.be']['ansible_default_ipv4']['address'] }}'
option dest_ip '{{ lookup('community.dns.lookup', 'u441453.your-storagebox.de') }}'
option target 'ACCEPT'
option family 'ipv4'
# SSH traffic IN # SSH traffic IN
config rule config rule
option name 'Allow-INPUT-SSH' option name 'Allow-INPUT-SSH'

View File

@@ -6,4 +6,4 @@ restic_architecture: "amd64"
restic_system: "{{ ansible_facts['system'] | lower }}" restic_system: "{{ ansible_facts['system'] | lower }}"
restic_download_url: "https://github.com/restic/restic/releases/download/v{{ restic_version }}/restic_{{ restic_version }}_{{ restic_system }}_{{ restic_architecture }}.bz2" restic_download_url: "https://github.com/restic/restic/releases/download/v{{ restic_version }}/restic_{{ restic_version }}_{{ restic_system }}_{{ restic_architecture }}.bz2"
restic_repository: "s3:{{ restic_s3_url }}/{{ inventory_hostname }}" restic_repository: "{{ restic_s3_url }}/{{ inventory_hostname }}"