mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
update scripts
This commit is contained in:
parent
7ad2a2585b
commit
d9f1fa4efb
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user