Anonymous

Changes

From NixNet
m
correct password issue with case statement
# Dump file location
DUMPFILE=/root/db_dumps/$DATABASE-backup-$DAY
 
##########################
# MYSQL-SPECIFIC OPTIONS #
##########################
MYSQLPASSWORD='CHANGEMETOSOMETHINGSECURE'
#############################
#############################
# Set the read-only user's password
PGPASSWORD='CHANGEMETOSOMETHINGSECURECHANGEMETOSOMETHINGSECURETOO'
# Space-separated list of databases for backing up
DBNAME="misskey"
chown 0:0 $DUMPFILE
chmod 600 $DUMPFILE
mysqldump -u archive -p$PGPASSWORD MYSQLPASSWORD --all-databases > $DUMPFILE
;;
postgres)
== ACTS configuration ==
ACTS can be installed by simply <code>wget</code>ing <code>acts</code> and <code>acts.conf.sample</code> directly from the repo. Alternatively, you can clone the whole repository and symlink <code>acts</code> to wherever you like for easier updates then copy <code>acts.conf.sample</code> to <code>/etc/acts.conf</code>.The following is how we do it. <pre>cd /root/git clone https://github.com/alexjurkiewicz/acts/ln -s /root/acts/acts /usr/local/scripts/acts</pre>
Make sure you reference the sample configuration file but these are the base options we use. Add additional directories to the <code>backuptargets</code> line, omitting the preceding <code>/</code>. Until you run ACTS and verify that your configuration works properly, leave <code>verbose</code> set to 1. After you're sure everything works, set it to 0.