Set up hard links and mounted folders in order to make remote backups of the system configuration.
$ mkdir /backup/config
#!/bin/bash | |
LOGFILE="backup.sh.log" | |
USE_INCREMENTAL=true | |
timestamp() { | |
date "+%Y-%m-%d %H:%M:%S" | |
} | |
if [ "$USE_INCREMENTAL" = true ]; then |
#!/bin/bash | |
# set mysql into innodb recovery mode on startup | |
mode=1; sed -i "/^\[mysqld\]/{N;s/$/\ninnodb_force_recovery=$mode/}" /etc/my.cnf | |
# restart mysql | |
systemctl restart mysqld | |
# remove recovery mode setting | |
sed -i '/innodb_force_recovery/d' /etc/my.cnf |
Mirror the current configuration files on the server to the backup folder in order to make remote backups of the system configuration. See this link for source of backup folders and files.
# mkdir -p /backup/config/etc/cpanel/ea4
# mkdir -p /backup/config/etc/csf
# Sourced from https://www.reddit.com/r/pihole/comments/92u4ax/pandora_radio_ads_block/ | |
t1-1.p-cdn.us | |
t2-1.p-cdn.us | |
t2-5.p-cdn.us | |
t1-3.p-cdn.us | |
t2-2.p-cdn.us | |
t2-4.p-cdn.us | |
t1-2.p-cdn.us | |
t2-3.p-cdn.us | |
t1-4.p-cdn.us |
$ curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
$ sudo yum update
$ sudo ACCEPT_EULA=Y yum install -y msodbcsql mssql-tools unixODBC-devel