Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
540d1239
Commit
540d1239
authored
Oct 08, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mysql backup script
parent
b4ac5cb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
make_sql_backup-copy.sh
mysql/make_sql_backup-copy.sh
+13
-0
make_sql_backup-da.sh
mysql/make_sql_backup-da.sh
+7
-0
No files found.
mysql/make_sql_backup-copy.sh
0 → 100755
View file @
540d1239
#!/bin/sh
BDIR
=
/var/lib/mysql/db
TDIR
=
/var/spool/backup/mysql/
$(
date
"+%H:00"
)
mkdir
-p
$TDIR
/
rm
-rf
$TDIR
/
rm
-rf
$TDIR
.tar.gz
nice
ionice
-c
2
cp
-aL
$BDIR
$TDIR
/
#chgrp remote $TDIR/ -R
chmod
a-w
$TDIR
/
-R
chmod
ug+rX
$TDIR
/
-R
nice
ionice
-c
2
tar
cvfz
$TDIR
.tar.gz
-C
$TDIR
/ ./
rm
-rf
$TDIR
/
mysql/make_sql_backup-da.sh
0 → 100755
View file @
540d1239
#!/bin/sh
BDIR
=
/var/lib/mysql/db
TDIR
=
/var/spool/backup/mysql/
$(
date
"+%H:00"
)
mkdir
-p
$TDIR
/
rm
-rf
$TDIR
.tar.gz
nice
ionice
-c
3
tar
cvfz
$TDIR
.tar.gz
-C
$BDIR
/ ./
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