Closed hexylena closed 9 months ago
I'm noticing my backups stopped a while back
root@bioinf-galaxy:/data/backups# cat /etc/cron.d/ansible_postgresql_backup #Ansible: PostgreSQL Backup 0 1 * * * postgres '~postgres/backups'/bin/backup.py --rsync-backup-opts -rptg --keep 30 --backup --clean-archive /data/backups
Here '~postgres..' isn't getting expanded, removing the ' fixes that, but the backup options also cause issues:
'~postgres..'
'
python3.8 ~postgres/backups/bin/backup.py --keep 30 --backup --clean-archive /data/backups --rsync-backup-opts '-rptg' usage: backup.py [-h] [--backup] [--keep KEEP] [--clean-archive] [--rsync-connect-opts RSYNC_CONNECT_OPTS] [--rsync-backup-opts RSYNC_BACKUP_OPTS] [--pg-bin-dir PG_BIN_DIR] [-v] backup_path backup.py: error: argument --rsync-backup-opts: expected one argument
I'm noticing my backups stopped a while back
Here
'~postgres..'
isn't getting expanded, removing the'
fixes that, but the backup options also cause issues: