diff --git a/roles/copr/keygen/files/backup_keyring.sh b/roles/copr/keygen/files/backup_keyring.sh index fec11d7f70..53327f2431 100644 --- a/roles/copr/keygen/files/backup_keyring.sh +++ b/roles/copr/keygen/files/backup_keyring.sh @@ -1,8 +1,14 @@ #!/bin/sh -# used as root -# root gpg keychain should have PUBLIC key with `user name` copr-keygen-backup-key -# (per https://pagure.io/fedora-infrastructure/issue/8904) +# - used as root +# - executed hourly, overwriting the "daily file" in /backup dir +# - the Fedora Infra backup mechanism pulls that file, overwriting its own +# "daily" copy +# - it means we should always have at most a 24h-old backup +# - the root gpg keychain should have PUBLIC key with `user name` +# copr-keygen-backup-key, per +# https://pagure.io/fedora-infrastructure/issue/8904 +# - fixed in https://github.com/fedora-copr/copr/issues/3532 PATH_TO_KEYRING_DIR="/var/lib/copr-keygen" BACKUP_DIR=/backup