Bancha Bash is a simple unix bash script utilities to performs many useful operations.
Project homepage: https://github.com/squallstar/bancha-bash
From an unix shell (we used Ubuntu), type the following commands:
wget -q https://raw.github.com/squallstar/bancha-bash/master/bancha.sh -O _bnc.sh chmod +x _bnc.sh sudo mv _bnc.sh /usr/bin/bancha
Or, if you have curl instead of wget:
curl -s https://raw.github.com/squallstar/bancha-bash/master/bancha.sh > _bnc.sh chmod +x _bnc.sh sudo mv _bnc.sh /usr/bin/bancha
To do a fresh Bancha install:
The script will ask you for a directory (leave blank to install in the current path). After installing, go here and skip the first step: How to install
Update an existing installation to the latest available version on GitHub:
The following folders will be updated: core and themes/admin. A backup copy of both directories will be created in their paths with a ._old. prefix.
To clear the website and administration cache (db, pages, settings, trees, content types):
bancha clear cache