gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
  • gb
-->

Install and Maintenence Scripts

==Install and maintainence scripts==

We have created a series of scripts to automatically provision a server and to perform basic maintenance tasks.
The scripts to provision and run the Magento server are stored on ftpmagento.stockinthechannel.com

=== Included scripts ===
As part of the installation, we install some scripts to perform standard tasks
* ”’Reindex Magento”’
/bin/sinch/reindex.sh [INSTALL_PATH]
”’Requires”’ vars.txt or INSTALL_PATH passed as argument

* ”’Clear Magento Cache”’
/bin/sinch/clrcache.sh [INSTALL_PATH]
”’Requires”’ vars.txt or INSTALL_PATH passed as argument

* ”’Delete All Products and Categories”’
/bin/sinch/delprod.sh
”’Requires”’ vars.txt

* ”’Reboot server”’
/bin/sinch/reboot.sh [REASON]
”’No Requirements”’

* ”’Suspend site”’
/bin/sinch/suspend.sh
”’Requires”’ vars.txt

* ”’Unsuspend site”’
/bin/sinch/unsuspend.sh
”’Requires”’ vars.txt

* ”’Terminate site”’
/bin/sinch/terminate.sh
”’Requires”’ vars.txt

* ”’Unterminate site”’
/bin/sinch/unterminate.sh
”’Requires”’ vars.txt

* ”’Create ad hoc backup”’
/bin/sinch/mbackup.sh
”’Requires”’ vars.txt

* ”’Restore to previous backup on site”’
/bin/sinch/mrestore.sh <BACKUP_FILE>
”’Requires”’ vars.txt ”’and”’ Backup file Path as argument

* ”’Repair Magento database see: [http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/db-repair-tool Magento DB Repair]”’
/bin/sinch/prerepair.sh
”Open Repair Page”
/bin/sinch/postrepair.sh
”’Requires”’ vars.txt

* ”’Create off site backup”’
/bin/sinch/offbackup.sh
”’Requires”’ vars.txt

* ”’Recover a site from off site backup”’
/bin/sinch/offrestore.sh
”’Requires”’ vars.txt
”’Note:”’ Only Downloads. Use ”mrestore.sh” to restore the backup file

* ”’Upgrade Magento to new version”’
/bin/sinch/upgrade.sh
”’Requires”’ vars.txt
”’Note:”’ Will not overwrite content

* ”’Get latest version of scripts”’
/bin/sinch/latest-scripts.sh
”’Note:”’ This is run automatically to update scripts daily

* ”’Cleanup – Optimizes MySQL, cleans log, clears cache”’
/bin/sinch/cleanup.sh
”’Requires”’ vars.txt
”’Note:”’ It is not neccesary to run this script. It is automatically run by ”cron” weekly

* ”’Tests Magento Cron is being run”’
/bin/sinch/test-cron.sh
”’No Requirements”’

* ”’Service Restart”’
/bin/sinch/svcrestart.sh <SERVICE_NAME>
”’Requires”’ Service Name as argument

* ”’Help”’
/bin/sinch/help-sinch.sh
”’No Requirements”’

* ”’Last Import”’
/bin/sinch/lastimport.sh
”’Requires”’ vars.txt
”’Note:”’ ”lastimport.sh” is a QoL script for zabbix to determine whether the last import was under 1 week ago

== Scripts That Shouldn’t be Executed ==
* ”’Dyndnsupdate”’
/bin/sinch/dyndnsupdate.sh
This script is automatically running at all times to update the firewall Dynamic IP rules. running this again will cause the script confusion.

* ”’Boot.sh”’
/bin/sinch/boot.sh
Used to determine system boot time in Sinch logs. Running this will not achieve anything.

* ”’Cron Setup”’
/bin/sinch/cronsetup.sh
Used to add Sinch and magento cronjobs to crontab. Do Not Run if these have already exist (”unpackserver.sh” will add them)

* ”’Iptables Setup”’
/bin/sinch/iptablessetup.sh
Used to setup firewall rules and start execution of ”dyndnsupdate.sh”

* ”’Lib”’
/bin/sinch/lib.sh
Library File. No Point Running

* ”’Zabbix Agent Install”’
/bin/sinch/zabbix_agent_install.sh
Installs the zabbix agent. ”’Do not run”’ as the server will attempt to ”recompile” and reinstall zabbix

Let us know if we missed anything...

Leave a Comment

You must be logged in to post a comment.