Skip to content

Commit

Permalink
Make the backup cron job run every minute
Browse files Browse the repository at this point in the history
Update unit tests test-8 and test-24 for this.
  • Loading branch information
ndokos authored and portante committed Dec 15, 2020
1 parent 778e899 commit 22ed51e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/bin/gold/test-24.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ [email protected]
23 * * * * flock -n /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/locks/pbench-copy-sosreports.lock /var/tmp/pbench-test-server/test-24/opt/pbench-server/bin/pbench-copy-sosreports
* * * * * flock -n /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/locks/pbench-index.lock /var/tmp/pbench-test-server/test-24/opt/pbench-server/bin/pbench-index
* * * * * flock -n /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/locks/pbench-re-index.lock /var/tmp/pbench-test-server/test-24/opt/pbench-server/bin/pbench-index --re-index
53 4 * * * flock -n /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/locks/pbench-backup-tarballs.lock /var/tmp/pbench-test-server/test-24/opt/pbench-server/bin/pbench-backup-tarballs
* * * * * flock -n /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/locks/pbench-backup-tarballs.lock /var/tmp/pbench-test-server/test-24/opt/pbench-server/bin/pbench-backup-tarballs
* * * * * flock -n /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/locks/pbench-sync-satellite-ONE.lock /var/tmp/pbench-test-server/test-24/opt/pbench-server/bin/pbench-sync-satellite satellite-one
---- /var/tmp/pbench-test-server/test-24/opt/pbench-server/lib/crontab/crontab
++++ /var/tmp/pbench-test-server/test-24/opt/pbench-server-satellite/lib/crontab/crontab
Expand Down
2 changes: 1 addition & 1 deletion server/bin/gold/test-8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ [email protected]
23 * * * * flock -n /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/locks/pbench-copy-sosreports.lock /var/tmp/pbench-test-server/test-8/opt/pbench-server/bin/pbench-copy-sosreports
* * * * * flock -n /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/locks/pbench-index.lock /var/tmp/pbench-test-server/test-8/opt/pbench-server/bin/pbench-index
* * * * * flock -n /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/locks/pbench-re-index.lock /var/tmp/pbench-test-server/test-8/opt/pbench-server/bin/pbench-index --re-index
53 4 * * * flock -n /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/locks/pbench-backup-tarballs.lock /var/tmp/pbench-test-server/test-8/opt/pbench-server/bin/pbench-backup-tarballs
* * * * * flock -n /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/locks/pbench-backup-tarballs.lock /var/tmp/pbench-test-server/test-8/opt/pbench-server/bin/pbench-backup-tarballs
* * * * * flock -n /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/locks/pbench-sync-satellite-ONE.lock /var/tmp/pbench-test-server/test-8/opt/pbench-server/bin/pbench-sync-satellite satellite-one
---- /var/tmp/pbench-test-server/test-8/opt/pbench-server/lib/crontab/crontab
++++ /var/tmp/pbench-test-server/test-8/opt/pbench-server-satellite/lib/crontab/crontab
Expand Down
2 changes: 1 addition & 1 deletion server/lib/config/pbench-server-default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ crontab = * * * * * flock -n %(lock-dir)s/pbench-prep-$SHIM_VERSION.lock %(scr
crontab = * * * * * flock -n %(lock-dir)s/pbench-dispatch.lock %(script-dir)s/pbench-dispatch

[pbench-backup-tarballs]
crontab = 53 4 * * * flock -n %(lock-dir)s/pbench-backup-tarballs.lock %(script-dir)s/pbench-backup-tarballs
crontab = * * * * * flock -n %(lock-dir)s/pbench-backup-tarballs.lock %(script-dir)s/pbench-backup-tarballs

[pbench-verify-backup-tarballs]
crontab = 53 5 * * * flock -n %(lock-dir)s/pbench-verify-backup-tarballs.lock %(script-dir)s/pbench-verify-backup-tarballs
Expand Down

0 comments on commit 22ed51e

Please sign in to comment.