[Unit] Description=Push PostgreSQL base backup to object storage After={{ postgres_service }}.service network-online.target Wants=network-online.target [Service] Type=oneshot User=postgres Group=postgres EnvironmentFile=/etc/wal-g/wal-g.env ExecStart=/usr/local/bin/wal-g backup-push {{ postgres_data_dir }} ExecStartPost=/usr/local/bin/wal-g delete retain FULL {{ wal_g_retention_count }} --confirm Nice=10 IOSchedulingClass=best-effort IOSchedulingPriority=7 PrivateTmp=true NoNewPrivileges=true