Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
centos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platyhouse
centos
Commits
0a0d1265
Commit
0a0d1265
authored
Feb 26, 2025
by
서형민
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added exclude t_pty_logs & t_pty_inbounds
parent
5f6f6f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pty_mysql_backup_all_each_db.php
pty_mysql_backup_all_each_db.php
+1
-1
No files found.
pty_mysql_backup_all_each_db.php
View file @
0a0d1265
...
@@ -36,7 +36,7 @@ mysqli_close($connection);
...
@@ -36,7 +36,7 @@ mysqli_close($connection);
function
mysql_backup
(
$host
,
$user
,
$password
,
$dbName
)
function
mysql_backup
(
$host
,
$user
,
$password
,
$dbName
)
{
{
$cmd
=
"mysqldump -u
$user
-p
$password
-h
$host
$dbName
--default-character-set=utf8mb4 --routines --events --add-drop-table --add-drop-database --complete-insert --extended-insert=FALSE --single-transaction >
$dbName
.sql"
;
$cmd
=
"mysqldump -u
$user
-p
$password
-h
$host
$dbName
--default-character-set=utf8mb4 --routines --events --add-drop-table --add-drop-database --complete-insert --extended-insert=FALSE --single-transaction
--ignore-table=
$dbName
.t_pty_logs --ignore-table=
$dbName
.t_pty_inbounds
>
$dbName
.sql"
;
echo
$cmd
;
echo
$cmd
;
system
(
$cmd
);
system
(
$cmd
);
}
}
...
...
platyhouse
@platyhouse
mentioned in commit
8587004b
·
Dec 16, 2025
mentioned in commit
8587004b
mentioned in commit 8587004bfbebb2ceff13804bc1eea04727f6a285
Toggle commit list
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