Skip to content
Snippets Groups Projects
Verified Commit ec4d210e authored by David Beniamine's avatar David Beniamine
Browse files

Upgrade backup system

parent 9066dc8a
No related branches found
No related tags found
No related merge requests found
......@@ -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 "\tPlease check that the following services are up and running"
bash $DIR/checks/list_domains.sh
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment