🔀: merge S3 OVH

This commit is contained in:
VC
2025-01-09 08:36:24 +01:00
3 changed files with 13 additions and 4 deletions

View File

@@ -5,6 +5,14 @@ restic_backup_path:
restic_backup_hour: 6
restic_backup_minute: 45
restic_aws_access_key_id: ""
restic_aws_secret_access_key: ""
restic_s3_url: "sftp://u441453@u441453.your-storagebox.de//backup"
restic_aws_access_key_id: "9b144522d13146c5851940fe6bb27fb5"
restic_aws_secret_access_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
36313765613830623935393637356362326437626434373433323864623961393936353238393363
3834306364613939653136623863323233303235396165610a613763353866306462313363386162
35383735393462323964323863393362386232356366306237353335396564663338346661383764
3161616531313439320a613265633632353032386337356161373835336634666138393437313634
39386366363739313030353039363338373631306536633162616136666533306132346363653863
3133636565626436346139633065343766386564653162323663
restic_s3_url: "https://s3.sbg.io.cloud.ovh.net/backup-libertus"
restic_backup_retention: "--max-unused 1% -d 4 -w 3 -m 2"

View File

@@ -10,3 +10,4 @@ restic_backup_path: ["/srv", "/home", "/etc"]
restic_backup_excluded_path: ["/srv/NOBACKUP"]
restic_backup_hour: 6
restic_backup_minute: 0
restic_backup_retention: "--max-unused 1% -d 7 -w 4 -m 3"

View File

@@ -10,4 +10,4 @@ export AWS_SECRET_ACCESS_KEY="{{ restic_aws_secret_access_key }}"
{{ restic_path }} backup --exclude-caches {% for i in restic_backup_excluded_path %} -e {{ i }} {% endfor %} {% for i in restic_backup_path %}{{ i }} {% endfor %}
## récupération de l'espace
{{ restic_path }} forget --prune -d 7 -w 4 -m 3 -y 1
{{ restic_path }} forget --prune {{ restic_backup_retention }}