diff options
author | Christopher Baines <mail@cbaines.net> | 2020-03-20 20:40:33 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-03-20 20:40:33 +0000 |
commit | cf4082dbeba98922ad3dacaec34bb0fcab0390cc (patch) | |
tree | 4e58f424ba0d7eb674a381df084c6acfdeab2a5b /scripts/guix-data-service-create-small-backup | |
parent | c44297b6159e0564ae65cbe887683020ac385e22 (diff) | |
download | data-service-cf4082dbeba98922ad3dacaec34bb0fcab0390cc.tar data-service-cf4082dbeba98922ad3dacaec34bb0fcab0390cc.tar.gz |
Avoid failures related to renice and ionice
These parts of the backup scripts are optional, so don't fail if they don't
work.
Diffstat (limited to 'scripts/guix-data-service-create-small-backup')
-rwxr-xr-x | scripts/guix-data-service-create-small-backup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/guix-data-service-create-small-backup b/scripts/guix-data-service-create-small-backup index bc6ed8c..6616c52 100755 --- a/scripts/guix-data-service-create-small-backup +++ b/scripts/guix-data-service-create-small-backup @@ -15,8 +15,8 @@ fi FULL_BACKUP_NAME="guix_data_service_full.dump" SMALL_BACKUP_NAME="guix_data_service_small.dump" -renice 19 -p $$ -ionice -p $$ -c 3 +renice 19 -p $$ || true +ionice -p $$ -c 3 || true TMP_DATABASE=$(mktemp -d -t guix-data-service-database-XXXX) URI=$(pg_tmp -w 0 -d "$TMP_DATABASE") |