We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5d921 commit 133f66cCopy full SHA for 133f66c
cob_datapipeline/backup_collections_dag.py
@@ -50,7 +50,7 @@ def backup_collections(collections: list):
50
delete_task = SSHOperator(
51
task_id="delete_old_solr_backups",
52
ssh_conn_id="SOLR_NETWORKED_DRIVE",
53
- command="sudo find /backups/ -type f -mtime +30 -exec rm {} \\;",
+ command="sudo find /backups/ -type d -mindepth 1 -maxdepth 1 -mtime +30 -exec rm -rf {} +",
54
cmd_timeout=None,
55
)
56
0 commit comments