Avoid failures related to renice and ionice

These parts of the backup scripts are optional, so don't fail if they don't
work.
This commit is contained in:
Christopher Baines 2020-03-20 20:40:33 +00:00
parent c44297b615
commit cf4082dbeb
2 changed files with 4 additions and 4 deletions

View file

@ -12,8 +12,8 @@ FULL_BACKUP_NAME="guix_data_service_full.dump"
TEMPORARY_FILE_NAME="${TMPDIR:-/tmp}/guix_data_service_full-$DATE.dump.tmp"
DESTINATION_FILE_NAME="$BACKUP_DIRECTORY/$DATE/$FULL_BACKUP_NAME"
renice 19 -p $$
ionice -p $$ -c 3
renice 19 -p $$ || true
ionice -p $$ -c 3 || true
pg_dump --format=custom --compress=9 --serializable-deferrable \
--username=guix_data_service \