copr-backend: backup log-detective "as copr"

There's no need to hide the backup tarballs, since we download them from
a public place.
This commit is contained in:
Pavel Raiskup 2024-10-30 11:31:26 +01:00
parent 3a2adc33ef
commit e77961d36b
2 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,5 @@
--- ---
ld_backup_user: log-detective-backups ld_backup_user: copr
ld_backup_path: /var/lib/copr/public_html/log-detective-backups ld_backup_path: /var/lib/copr/public_html/log-detective-backups
ld_backup_script: /usr/bin/log-detective-backup ld_backup_script: /usr/bin/log-detective-backup
ld_dump_url: https://log-detective.com/download ld_dump_url: https://log-detective.com/download

View file

@ -1,11 +1,11 @@
--- ---
- name: Add the user 'log-detective-backup' # - name: Add the user 'log-detective-backup'
ansible.builtin.user: # ansible.builtin.user:
name: "{{ ld_backup_user }}" # name: "{{ ld_backup_user }}"
comment: User used for backing-up log-detective.com # comment: User used for backing-up log-detective.com
uid: 15151 # uid: 15151
tags: # tags:
- log_detective_backup # - log_detective_backup
- name: create the log-detective.com backup directory - name: create the log-detective.com backup directory
ansible.builtin.file: ansible.builtin.file:
@ -13,7 +13,8 @@
state: directory state: directory
owner: "{{ ld_backup_user }}" owner: "{{ ld_backup_user }}"
group: "{{ ld_backup_user }}" group: "{{ ld_backup_user }}"
mode: '0700' # public tarball -> public backups
mode: '0755'
tags: tags:
- log_detective_backup - log_detective_backup