forked from todiadiyatmo/bash-backup-rotation-script
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackup.conf
More file actions
executable file
·61 lines (55 loc) · 2.91 KB
/
backup.conf
File metadata and controls
executable file
·61 lines (55 loc) · 2.91 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# website config - LOCAL
#
# This file controls the automatic mysql database backup.
#
# Any lines that start with a # character are comments and are ignored.
#
# IT IS SUPER IMPORTANT THAT YOU RESTRICT THE READ/WRITE SETTINGS OF THIS
# FILE TO THE ADMIN USER ONLY.
# on LINUX that's PERMISSIONS: 600 and Change the Owner to ROOT.
# (If you are on a shared server change the owner to your account only.)
# Values to use for sql frequency
# and for files frequency. 1-7.
#----------------------------------#
# Daily | Weekly | Monthly | Value #
#-------|--------|---------|-------#
# Yes | No | No | 1 #
# No | Yes | No | 2 #
# Yes | Yes | No | 3 #
# No | No | Yes | 4 #
# Yes | No | Yes | 5 #
# No | Yes | Yes | 6 #
# Yes | Yes | Yes | 7 #
#----------------------------------#
# Local Backups
# - type: for local backups set this to 'local', for ftp backups set this to 'ftp'
# - sql: how often to backup the sql database, see chart above
# - host: the hostname of the mysql server to connect to
# - database: the name of the database to backup
# - user: the database username to connect with
# - password: the database password to authenticate with
# - files: how often to backup the website files, see chart above
# - directory: the directory to backup
# - target: where to send the files
#
# LOCAL BACKUPS
# type hostname sql database user password files directory target
local localhost 7 db_coolsite databaseUser 124AwesomePass123 6 /var/www/coolsite /backup/websites
# FTP Backups
# - type: for local backups set this to 'local', for ftp backups set this to 'ftp'
# - sql: how often to backup the sql database, see chart above
# - host: the hostname of the mysql server to connect to
# - database: the name of the database to backup
# - user: the database username to connect with
# - password: the database password to authenticate with
# - files: how often to backup the website files, see chart above
# - directory: the directory to backup
# - target: where to send the files
# - ftp-host: the hostname of the ftp server
# - ftp-port: the port for the ftp server, usually 21
# - ftp-user: the username of your ftp account
# - ftp-password: the password to your ftp account
#
# FTP BACKUPS
# type hostname sql database user password files directory target ftp-host ftp-port ftp-user ftp-password
ftp localhost 7 db_coolsite databaseUser 124AwesomePass123 4 /var/www/coolsite /ftp-server/backup-location ftp-server.com 21 jack !2JackzPassword$#!@