Multi-Utility Shell Script

Protos

Core Developers
Messages
236
Points
0
Age
35
IRC Nickname
smoke
Github
smokexyz
Emulator
This is a multi-utility shell script for all servers.  I had created this as someone had requested a creation of something similar. It is a free release so please share it with your friends
default_smile.png


Link: hydra.sh

Pre-requisites

  • Screen
  • Mysql
  • Zip

Installation

Place in the root of your hercules installation and type 

chmod +x hydra.sh
./hydra.sh

Usage

  • check login
  • check char
  • check map
- These commands instantly check if either of the servers are working. If any are offline, they will be booted in a screen window and the name of the screen window will be listed.

  • recompile 
- Recompiles your server.

  • backup database [username] [password] (database1:database2...) (hostname) (output dir)
- Backs up your mysql database to ~/backups/ directory. ~/ is your home directory.

  • backup emulator (zip password) (output dir)
- Backs up your entire emulator code to ~/backups/ directory.

Have fun!

 
Awesome as always

 
hi @Smoke

to make it more ease at use can u make it to have pre-defined username and password for backup

and if you willing

add a automatic scheduled backup or cron job for database back up

thanks for the script it great

regard

Litro

 
Back
Top