2017-06-05 16:23:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
##############################################################
|
|
|
|
############## ##########
|
|
|
|
############## CONFIG ##########
|
|
|
|
############## ##########
|
|
|
|
##############################################################
|
|
|
|
#### just update these to point to your server ###
|
|
|
|
##############################################################
|
|
|
|
|
2018-07-05 03:27:01 +00:00
|
|
|
## BACKUP TYPE (1 = REMOTE SERVER || 2 = DROPBOX)
|
|
|
|
BACKUPTYPE=1
|
|
|
|
|
|
|
|
## REMOTE SERVER DETAILS (1)
|
2017-06-05 16:23:04 +00:00
|
|
|
REMOTESSH="user@yourserver.com"
|
2018-07-05 03:27:01 +00:00
|
|
|
|
|
|
|
## DROPBOX DETAILS (2) (get it from https://github.com/andreafabrizi/Dropbox-Uploader)
|
|
|
|
DROPBOX="/home/path/to/Dropbox-Uploader/dropbox_uploader.sh"
|
|
|
|
|
|
|
|
# PATH DETAILS
|
2017-06-05 16:23:04 +00:00
|
|
|
REMOTEDBPATH="your_db_path/"
|
2018-07-05 03:27:01 +00:00
|
|
|
REMOTEWEBPATH="your_website_path/"
|
|
|
|
|
|
|
|
## WEBSITE BACKUP TYPE (1 = PER/FILE || 2 = ZIPPED)
|
|
|
|
WEBBACKUPTYPE=1
|
2017-06-05 16:23:04 +00:00
|
|
|
|
2017-06-05 16:54:16 +00:00
|
|
|
## 0 = no date | 1 = year | 2 = year-month | 3 = your-month-day | 4 = your-month-day:time # For DB file name
|
|
|
|
USEDATE=0
|