-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.cfg.default
93 lines (83 loc) · 3.89 KB
/
settings.cfg.default
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
##################################################################################
# A quick way to create restorable backups for an IOMAD moodle installation #
# There are probably 1000 better ways to do this, and my code skills are by #
# no means good, but it works for me and creates almost automated #
# Backups and restoral for my particular virtual host Apache installation #
# with several IOMAD installations running multiple versions and branches #
# #
# Glady accepting of all code contributions.. It's been 10+ years since IOMAD #
# Wrote anything publicly available. #
# Next thing to do: Add are cli options for scheduled cron jobs #
##################################################################################
#
#
# base location where your virtual hosts reside
# example 1: you have only one host on your server and the Directory structure is:
#
# └── var
# └── www
# └── html
# ├── iomad
# ├── logs
# └── moodledata
#
# www_rootdir=/var/www/html
#
#
# EXAMPLE 2: Multiple virtualhosts on your server, directory structure:
# └── var
# └── www
# │
# └── vhosts
# ├── iomad.400.domain.ca
# │ ├── iomad
# │ ├── logs
# │ └── moodledata
# └── iomad.401.domain.ca
# ├── iomad
# ├── logs
# └── moodledata
#
# www_rootdir=/var/www/vhosts
www_rootdir=/var/www/vhosts
# The next three are the default names - only change if you know you have too.
host_htmlroot=iomad
host_dataroot=moodledata
host_config=config.php
# Used by the restore script - this will keep the current config.php file
# if net to 'no' the config.php in the archive will be used instead.
preserve_config=yes
# The archive_root directory will be created in the same location
# the scripts are run from if it doesn't exist
# eg: /home/[you]/
# will create /home/[you]/IOMAD_BACKUPS as the archive root folder
archive_root=IOMAD_BACKUPS
# Let the script pull the current IOMAD for the installed branch
auto_update=no
# Additional offsite SCP host for backups.
# Be sure to copy your ssh-id to the remote host to bypass password prompts for the usernames
# rsync_enabled= [yes/no]
# rsync_remoteuser= remote username
# rsync_remotehost= domain name or IP address of remote host
# rsync_remotepath= Don't use a leading / unless you have access, or a jailed/chrooted remote account
# The directory would be relative to the remote users home.
# example: /home/$rsync_remoteuser/$rsync_remotepath
# Make sure this folder exists.
rsync_enabled=no
rsync_remoteuser=remoteusername
rsync_remotehost=host.domain.com
rsync_remotepath=BACKUP/REMOTE/
#############################################################################
# The site will be put into maintenance mode automatially when the script runs
# You can choose to re-enable the site automatically, or choose no to manually re-enable
# with ./admin/cli/maintenance.php --disable
enable_host=yes
# This gives a warning and a countdown to users before putting the host into maintenance mode
# for a custom HTML offline page, save it to moodledata ($host_dataroot)/climaintenance.html.off
# The script will copy that into the custom offline page if it exists
# and remove it will be removed when maintenance mode is disabled
delay_timer=30
# Enable the script to run. If set to no, it will exit before performing any actions.
# All options selected or pulled from this cfg file will be shown for any troubleshooting.
# [yes/no]
enabled=no