Difference between revisions of "Sysadmin:Sysadmin Info"
From JFA Wiki
Greg.Fuller (talk | contribs) |
Greg.Fuller (talk | contribs) (→Tasks) |
||
Line 4: | Line 4: | ||
* Webfaction Failover https://blog.gingerlime.com/2012/webfaction-fail-over/ | * Webfaction Failover https://blog.gingerlime.com/2012/webfaction-fail-over/ | ||
− | ==== | + | == To Do == |
− | + | ||
+ | * write and install cron job to backup database daily into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd" | ||
+ | * write shell script to run on localhost to download [root]/jfa/backups | ||
+ | * setup mediawiki instance at dev.justiceforanimals.org/wiki | ||
+ | |||
+ | |||
+ | == How To == | ||
+ | |||
+ | === SSH === | ||
+ | |||
+ | >ssh username@web542.webfaction.com | ||
+ | >cd /home/gregfuller/webapps/jfawiki/ (for wiki.justiceforanimals.org) | ||
+ | |||
+ | === Dump XML pages === | ||
− | |||
>cd /home/gregfuller/webapps/jfawiki/maintenance | >cd /home/gregfuller/webapps/jfawiki/maintenance | ||
− | >php72 dumpBackup.php --current >jfawikidump-yyyy | + | >php72 dumpBackup.php --current >/home/gregfuller/webapps/jfawiki/jfa/backups/xml/jfawikidump-yyyy-mm-dd.xml |
FTP the file down to localhost | FTP the file down to localhost | ||
+ | |||
+ | === Backup Dababase into [root]/jfa/backups/db | ||
+ | |||
+ | ToDo | ||
+ | |||
+ | === move [root]/jfa/backups offsite === | ||
+ | |||
+ | ToDo | ||
==== Including js and css files ==== | ==== Including js and css files ==== |
Revision as of 12:48, 17 February 2019
Implementation notes I make as I go.
Contents
Links
- Webfaction Failover https://blog.gingerlime.com/2012/webfaction-fail-over/
To Do
- write and install cron job to backup database daily into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd"
- write shell script to run on localhost to download [root]/jfa/backups
- setup mediawiki instance at dev.justiceforanimals.org/wiki
How To
SSH
>ssh username@web542.webfaction.com >cd /home/gregfuller/webapps/jfawiki/ (for wiki.justiceforanimals.org)
Dump XML pages
>cd /home/gregfuller/webapps/jfawiki/maintenance >php72 dumpBackup.php --current >/home/gregfuller/webapps/jfawiki/jfa/backups/xml/jfawikidump-yyyy-mm-dd.xml FTP the file down to localhost
=== Backup Dababase into [root]/jfa/backups/db
ToDo
move [root]/jfa/backups offsite
ToDo
Including js and css files
- done because login page on Refreshed theme doesn't load common.css and common.js