Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
8b806dd5
Commit
8b806dd5
authored
7 years ago
by
Jerome Coste
Browse files
Options
Downloads
Patches
Plain Diff
Remove all MAX_BACKUP affiliated variables in the project
parent
e08bfc64
No related branches found
Branches containing commit
No related tags found
1 merge request
!6
Unified backup
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pica-backup/mysql-run.sh
+0
-1
0 additions, 1 deletion
pica-backup/mysql-run.sh
pica-backup/postgres-run.sh
+0
-1
0 additions, 1 deletion
pica-backup/postgres-run.sh
pica-backup/run.sh
+0
-5
0 additions, 5 deletions
pica-backup/run.sh
with
0 additions
and
7 deletions
pica-backup/mysql-run.sh
+
0
−
1
View file @
8b806dd5
...
...
@@ -31,7 +31,6 @@ rm -f "/$backup_script_name"
cat
<<
EOF
>> "/
$backup_script_name
"
#!/bin/bash
MAX_BACKUPS=
${
MAX_BACKUPS
}
BACKUP_NAME=
\$
(date +
\%
Y.
\%
m.
\%
d.
\%
H
\%
M
\%
S).sql
...
...
This diff is collapsed.
Click to expand it.
pica-backup/postgres-run.sh
+
0
−
1
View file @
8b806dd5
...
...
@@ -20,7 +20,6 @@ rm -f "/$backup_script_name"
cat
<<
EOF
>> "/
$backup_script_name
"
#!/bin/bash
MAX_BACKUPS=
${
MAX_BACKUPS
}
export PGHOST=
$POSTGRES_HOST
export PGPORT=
$POSTGRES_PORT
export PGDATABASE=
$POSTGRES_DB
...
...
This diff is collapsed.
Click to expand it.
pica-backup/run.sh
+
0
−
5
View file @
8b806dd5
...
...
@@ -9,7 +9,6 @@
# MYSQL_USER_LIST POSTGRES_USER_LIST
# MYSQL_PASS_LIST POSTGRES_PASS_LIST
# MYSQL_DB_LIST POSTGRES_DB_LIST
# MYSQL_MAX_BACKUP_LIST POSTGRES_MAX_BACKUP_LIST
# MYSQL_INIT_BACKUP_LIST POSTGRES_INIT_BACKUP_LIST
# MYSQL_CRON_TIME_LIST POSTGRES_CRON_TIME_LIST
# MYSQL_EXTRA_OPTS_LIST POSTGRES_EXTRA_OPTS-LIST
...
...
@@ -27,7 +26,6 @@ read -a MYSQL_PORT_ARRAY <<< "$MYSQL_PORT_LIST"
read
-a
MYSQL_USER_ARRAY
<<<
"
$MYSQL_USER_LIST
"
read
-a
MYSQL_PASS_ARRAY
<<<
"
$MYSQL_PASS_LIST
"
read
-a
MYSQL_DB_ARRAY
<<<
"
$MYSQL_DB_LIST
"
read
-a
MYSQL_MAX_BACKUPS_ARRAY
<<<
"
$MYSQL_MAX_BACKUPS_LIST
"
read
-a
MYSQL_INIT_BACKUP_ARRAY
<<<
"
$MYSQL_INIT_BACKUP_LIST
"
read
-a
MYSQL_CRON_TIME_ARRAY
<<<
"
$MYSQL_CRON_TIME_LIST
"
read
-a
MYSQL_EXTRA_OPTS_ARRAY
<<<
"
$MYSQL_EXTRA_OPTS_LIST
"
...
...
@@ -40,7 +38,6 @@ read -a POSTGRES_PORT_ARRAY <<< "$POSTGRES_PORT_LIST"
read
-a
POSTGRES_USER_ARRAY
<<<
"
$POSTGRES_USER_LIST
"
read
-a
POSTGRES_PASS_ARRAY
<<<
"
$POSTGRES_PASS_LIST
"
read
-a
POSTGRES_DB_ARRAY
<<<
"
$POSTGRES_DB_LIST
"
read
-a
POSTGRES_MAX_BACKUPS_ARRAY
<<<
"
$POSTGRES_MAX_BACKUPS_LIST
"
read
-a
POSTGRES_INIT_BACKUP_ARRAY
<<<
"
$POSTGRES_INIT_BACKUP_LIST
"
read
-a
POSTGRES_CRON_TIME_ARRAY
<<<
"
$POSTGRES_CRON_TIME_LIST
"
read
-a
POSTGRES_EXTRA_OPTS_ARRAY
<<<
"
$POSTGRES_EXTRA_OPTS_LIST
"
...
...
@@ -63,7 +60,6 @@ do
MYSQL_USER
=
${
MYSQL_USER_ARRAY
[i]
}
\
MYSQL_PASS
=
${
MYSQL_PASS_ARRAY
[i]
}
\
MYSQL_DB
=
${
MYSQL_DB_ARRAY
[i]
}
\
MAX_BACKUPS
=
${
MYSQL_MAX_BACKUPS_ARRAY
[i]
}
\
INIT_BACKUP
=
${
MYSQL_INIT_BACKUP_ARRAY
[i]
}
\
CRON_TIME
=
${
MYSQL_CRON_TIME_ARRAY
[i]
}
\
EXTRA_OPTS
=
${
MYSQL_EXTRA_OPTS_ARRAY
[i]
}
\
...
...
@@ -82,7 +78,6 @@ do
POSTGRES_USER
=
${
POSTGRES_USER_ARRAY
[i]
}
\
POSTGRES_PASS
=
${
POSTGRES_PASS_ARRAY
[i]
}
\
POSTGRES_DB
=
${
POSTGRES_DB_ARRAY
[i]
}
\
MAX_BACKUPS
=
${
POSTGRES_MAX_BACKUP_ARRAY
[i]
}
\
INIT_BACKUP
=
${
POSTGRES_INIT_BACKUP_ARRAY
[i]
}
\
CRON_TIME
=
${
POSTGRES_CRON_TIME_ARRAY
[i]
}
\
EXTRA_OPTS
=
${
POSTGRES_EXTRA_OPTS_ARRAY
[i]
}
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment