-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpupesoft.sh
executable file
·37 lines (29 loc) · 1004 Bytes
/
pupesoft.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Pupesoft asennuksen tiedot
POLKU="/var/www/html/pupesoft/"
# Pupesoft varmistuksen tiedot
BACKUPDIR="/backup/pupe-backup"
BACKUPDB="pupesoft"
BACKUPUSER="pupe"
BACKUPPASS="pupe1"
BACKUPSAVEDAYS="30"
# Salausavain varmistuksen salaamiseen
SALAUSAVAIN=""
# Lisavarmistuksen tiedot
EXTRABACKUP=""
REMOTEHOST=""
REMOTEUSER=""
REMOTEPASS=""
REMOTEREMDIR=""
REMOTELOCALDIR=""
# Backupataan kanta
NOMYSQLBACKUP=""
# MySQL slow queries logfile
SLOWLOG=""
# Jos MySQL on toisella palvelimella tai pitää antaa custom MySQL portti
DBHOST=""
# Komennot
/bin/bash ${POLKU}pupe-backup.sh "$BACKUPDIR" "$BACKUPDB" "$BACKUPUSER" "$BACKUPPASS" "$BACKUPSAVEDAYS" "$SALAUSAVAIN" "$EXTRABACKUP" "$REMOTEHOST" "$REMOTEUSER" "$REMOTEPASS" "$REMOTEREMDIR" "$REMOTELOCALDIR" "$NOMYSQLBACKUP"
/bin/bash ${POLKU}pupe-cron.sh "$BACKUPDB" "$BACKUPUSER" "$BACKUPPASS" "$DBHOST"
/bin/bash ${POLKU}pupe-cron-server.sh "$BACKUPSAVEDAYS"
/bin/bash ${POLKU}mysql-slow-log.sh "$SLOWLOG" "$BACKUPUSER" "$BACKUPPASS"