Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Show more breadcrumbs
libre.sh
compose.libre.sh
Merge requests
!186
WIP: Resolve "Restore from legacy backup"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
WIP: Resolve "Restore from legacy backup"
182-restore-from-legacy-backup
into
master
Overview
0
Commits
27
Pipelines
0
Changes
2
Open
Michel Memeteau
requested to merge
182-restore-from-legacy-backup
into
master
5 years ago
Overview
0
Commits
27
Pipelines
0
Changes
1
Expand
Closes
#182
👍
0
👎
0
Merge request reports
Viewing commit
d5752560
Prev
Next
Show latest version
1 file
+
7
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d5752560
Update utils/backup_app.sh
· d5752560
Michel Memeteau
authored
5 years ago
utils/backup_app.sh
+
7
−
7
Options
#!/bin/bash
#- Backup App (Piwigo) database and data files
#- Author: B. Mauclaire - bm@ekimia.fr - 2019/11/11
#- Usage: vm archive's name will be built with the database's name
#- Author: M. Memeteau - mm@ekimia.fr - 2020/01/01
#- Usage: vm archive's name will be built with the app's name
#--- Manage arguments:
case
$#
in
1
)
ARG1
=
"
$1
"
;;
*
)
echo
"Usage: ./backup_app.sh APP DB_PASSWORD"
;
exit
1
;;
1
)
APP_NAME
=
"
$1
"
;;
2
)
DB_PWD
=
"
$2
"
;;
*
)
echo
"Usage: ./backup_app.sh APP_NAME DB_PASSWORD"
;
exit
1
;;
esac
#--- Connexion parameters:
@@ -15,9 +17,7 @@ HOST_USER='root'
HOST_PORT
=
622
DB_NAME
=
'piwigo'
DB_USER
=
'piwigo'
DB_PWD
=
"
$ARG1
"
APP_NAME
=
'piwigo'
#app piwigo directories
APP_DIR
=
'/var/www/photos'
@@ -26,8 +26,8 @@ APP_DATA2='upload' ; # photos/upload
#app prestashop directories
APP_DIR
=
'/var/www/html'
APP_DATA1
=
#
APP_DIR='/var/www/html'
#
APP_DATA1=
#app nextcloud directories
Loading