Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
staging.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
staging.biuro
Commits
b267af4d
Commit
b267af4d
authored
Jul 10, 2019
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cron jobs added
parent
87ed2f20
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9243 additions
and
0 deletions
+9243
-0
data-2019-07-04-101801.sql
docker/backup/data-2019-07-04-101801.sql
+2303
-0
data-2019-07-04-102001.sql
docker/backup/data-2019-07-04-102001.sql
+2303
-0
data-2019-07-10-014501.sql
docker/backup/data-2019-07-10-014501.sql
+2308
-0
db-backup.sh
docker/cron-jobs/db-backup.sh
+2
-0
db-cleanup.sh
docker/cron-jobs/db-cleanup.sh
+17
-0
data-000.sql
docker/mariadb/data-000.sql
+2310
-0
No files found.
docker/backup/data-2019-07-04-101801.sql
0 → 100644
View file @
b267af4d
This diff is collapsed.
Click to expand it.
docker/backup/data-2019-07-04-102001.sql
0 → 100644
View file @
b267af4d
This diff is collapsed.
Click to expand it.
docker/backup/data-2019-07-10-014501.sql
0 → 100644
View file @
b267af4d
This diff is collapsed.
Click to expand it.
docker/cron-jobs/db-backup.sh
0 → 100644
View file @
b267af4d
#!/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
docker/cron-jobs/db-cleanup.sh
0 → 100644
View file @
b267af4d
#!/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);
"
;
docker/mariadb/data-000.sql
0 → 100644
View file @
b267af4d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment