Commit 1999a4b1 authored by Simon's avatar Simon

Merge branch 'cron-jobs'

parents 87ed2f20 b267af4d
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
#!/bin/sh
/usr/bin/docker exec biuro-staging-mysql mysqldump -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 staging_biuro > /home/ubuntu/biuro-staging/docker/backup/data-$(date +%Y-%m-%d-%H%M%S).sql
#!/bin/sh
/usr/bin/docker exec biuro-staging-mysql mysql -ustaging_user -p'qzl8pMNV^gZ&c1!7ebVsXqQh' --default-character-set=utf8 -e "
use staging_biuro;
DELETE FROM wp_biuro_employees WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_2_biuro_employees WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_3_biuro_employees WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_biuro_employers WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_2_biuro_employers WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
DELETE FROM wp_3_biuro_employers WHERE created < DATE_SUB(now(), INTERVAL 4 DAY);
";
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment