Commit b267af4d authored by Simon's avatar Simon

cron jobs added

parent 87ed2f20
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#!/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 diff is collapsed.
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