update scripts

This commit is contained in:
Dennis Eichhorn 2023-08-30 12:07:40 +00:00
parent 7ad2a2585b
commit d9f1fa4efb
2 changed files with 10 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash
MAIL_PASSWORD=""
MAIN_PATH="/var/www/html/Karaka/"
MAIN_PATH="/var/www/html/jingga/"
# 0 4 * * * /var/www/html/Karaka/Build/Backup/cron.sh
# 0 4 * * * /var/www/html/jingga/Build/Backup/cron.sh
# Create backup
${MAIN_PATH}Build/Backup/backup.sh > /tmp/backup.log

View File

@ -22,10 +22,17 @@ sql_exit=$?
# Create file backup
BACKUP_PATH="/home/spl1nes/backup"
BACKUP_PATH="/mnt/d/backup"
TO_BACKUP="/var/www/html"
REMOTE_USER="user"
REMOTE_SERVER="192.168.178.38"
REMOTE_PORT="2022"
# Setting this, so the repo does not need to be given on the commandline:
export BORG_REPO=ssh://${REMOTE_USER}@${REMOTE_SERVER}:${REMOTE_PORT}${BACKUP_PATH}
# See the section "Passphrase notes" for more infos.
export BORG_PASSPHRASE='sorden'
## Create repository
# borg init -v --encryption=repokey ${BACKUP_PATH}