Cheatography
https://cheatography.com
A reference guide to using MineOS command line script mineos_console.py
This is a draft cheat sheet. It is a work in progress and is not finished yet.
mineos_console.py parameters
cmd |
the command to execute |
-s |
the server to act upon |
-d |
the base of the mc file structure |
--this |
auto populates -d and -s |
argv |
additional arguments to pass |
./mineos_console.py -d /var/games/minecraft -s [myserver] [start]
./mineos_console.py --this [start]
mineos_console.py commands
console |
send text to the game console |
screen |
alias to 'console' |
[command] |
command to execute on server |
[property] |
return value of property |
"-s " means command will execute on specified server.
./mineos_console.py -s [servername] [command/property]
no "-s" means command will iterate on all servers
./mineos_console.py [command/property]
Available Commands
start |
starts a server |
kill |
force kills a server |
commit |
send 'save-all' to console |
stop |
send 'stop' command to console |
archive |
creates timestamped, gzipped tarball |
backup |
creates an rdiff-backup incremental snapshot |
restore [step] |
restores a downed server to a previous incremental backup |
prune [step] |
removes old rdiff-backup data and metadata |
delete_server |
deletes archive, backup, and live server data |
|
|
Available Properties
up |
true if the server is running |
profile |
profile the server is assigned |
server_version |
minecraft version, e.g., 1.7.9 |
java_pid |
process id of java instance |
screen_pid |
process id of screen instance |
port |
port server is assigned |
ip_address |
ip_address server is assigned |
memory |
MB used by java (VmRSS) |
ping |
returns server info (motd, online players, capacity) |
sp |
server.properties |
sc |
server.config |
server_type |
type of server suite, e.g., bukkit/forge |
ping_debug |
show debugging info for web-ui problems |
Debugging Properties
command_start |
returns cmd used to start up minecraft |
command_debug |
returns command_start without using screen |
command_archive |
returns cmd to archive a server |
command_backup |
returns cmd to create rdiff-backup increment |
command_kill |
returns cmd to kill a java instance |
command_restore [step] [--force] |
returns cmd to restore from an rdiff-backup increment |
command_prune |
returns cmd to remove oldest incremental backups |
command_list_increments |
returns cmd to list available increments |
command_delete_server |
returns cmd to remove specific server files |
|