Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #298 from marklise/master
Browse files Browse the repository at this point in the history
NOBUG: Tweaks to scheduledJob parameters.
  • Loading branch information
marklise authored Nov 3, 2017
2 parents 8c21d95 + de39c0f commit 0f6dc20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openshift/templates/scheduleJobBackup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ objects:
command:
- 'bash'
- '-c'
- 'ls -rdt /data/dump-* | head -n -$MONGODB_BACKUP_KEEP | xargs rm -rf; DIR=/data/dump-`date +%F-%T`; mongodump -j 1 -u admin -p ${MONGODB_ADMIN_PASSWORD} --host ${MONGODB_HOST} --authenticationDatabase=admin --gzip --out=$DIR && echo "Backup complete" && curl -X POST -H "Content-type: application/json" --data "${JSON_PAYLOAD}" ${CHANNEL_ENDPOINT}'
- 'ls -rdt /data/dump-* | head -n -$MONGODB_BACKUP_KEEP | xargs rm -rf; DIR=/data/dump-`date +%F-%T`; mongodump -j 1 -u admin -p ${MONGODB_ADMIN_PASSWORD} --host ${MONGODB_HOST} --authenticationDatabase=admin --gzip --out=$DIR && echo "Backup complete" && curl -X POST -H "Content-type: application/json" --data ''${JSON_PAYLOAD}'' ${CHANNEL_ENDPOINT}'
env:
- name: MONGODB_BACKUP_KEEP
value: ${MONGODB_BACKUP_KEEP}
Expand Down

0 comments on commit 0f6dc20

Please sign in to comment.