Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NoCloud-Auto-Installer
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
NoCloud-Auto-Installer
Commits
ec4d210e
Verified
Commit
ec4d210e
authored
8 months ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade backup system
parent
9066dc8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
upgrade/All.sh
+2
-2
2 additions, 2 deletions
upgrade/All.sh
upgrade/Backups.sh
+27
-0
27 additions, 0 deletions
upgrade/Backups.sh
with
29 additions
and
2 deletions
upgrade/All.sh
+
2
−
2
View file @
ec4d210e
...
...
@@ -65,6 +65,8 @@ bash $DIR/install/ncdu.sh
bash
$DIR
/upgrade/Monit.sh
bash
$DIR
/upgrade/Backups.sh
bash
$DIR
/checks/rkhunter.sh
# Check docker is running
...
...
@@ -80,8 +82,6 @@ services="$services $(systemctl | awk '/php.*fpm/{print $1}')"
[
!
-z
"
$services
"
]
&&
systemctl restart
$services
checkrestart
bash
$DIR
/checks/backups.sh
echo
-e
"
\t
Please check that the following services are up and running"
bash
$DIR
/checks/list_domains.sh
...
...
This diff is collapsed.
Click to expand it.
upgrade/Backups.sh
0 → 100644
+
27
−
0
View file @
ec4d210e
#!/bin/bash
echo
"RUN
$(
basename
"
$0
"
)
==="
if
[
!
-e
$(
dirname
"
$0
"
)
/../main.env
]
then
echo
"Please copy in racine of NoCloud Auto Installer main.env.sample to main.env and edit it"
exit
1
else
echo
"Environment file loaded"
fi
.
$(
dirname
"
$0
"
)
/../main.env
duplicity_dir
=
"/opt/duplicity-ftp-backup/"
duplicity_alt_dir
=
"/root/duplicity-ftp-backup/"
if
[
-d
"
$duplicity_dir
"
]
;
then
backup_dir
=
"
$duplicity_dir
"
elif
[
-d
"
$duplicity_alt_dir
"
]
;
then
backup_dir
=
"
$duplicity_alt_dir
"
fi
if
[
-z
"
$backup_dir
"
]
;
then
echo
"WARNING duplicity backup system not found"
exit
1
fi
cd
$backup_dir
git pull
bash
$DIR
/checks/backups.sh
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