Skip to content
Snippets Groups Projects
Verified Commit 76f01a03 authored by nd's avatar nd
Browse files

add oplog to backup for consistent restores, move away from gzip to enable better deduplication

parent 5a6bb53e
Branches
No related tags found
No related merge requests found
......@@ -17,6 +17,6 @@
- name: add backup cleanup cronjob
cron:
name: mongodb backup cleanup
job: 'find /opt/mongodbbackup/ -mtime +{{ mongodb.backup.keep_days - 1 }} -type d -mindepth 1 -exec rm -r {} \;'
job: 'find /opt/mongodbbackup/ -mindepth 1 -maxdepth 1 -mtime +{{ mongodb.backup.keep_days - 1 }} -type d -exec rm -r {} \;'
minute: "0"
hour: "5"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment