Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + version=210516
- + emailalert=on
- + email=peter.aretino@gmail.com
- + pushbulletalert=on
- + pushbullettoken=o.6YLbX2N53qYG2HxzoLyNzT1q6ZdbFXjU
- + steamuser=anonymous
- + steampass=
- + servername='The Rust of Two Cities'
- + ip=216.176.200.50
- + updateonstart=on
- + port=28015
- + rconport=28016
- + rconpassword='Ih8shmu5&app13sH'
- + maxplayers=75
- + seed=937126
- + worldsize=4000
- + saveinterval=300
- + tickrate=30
- + '[' -n 937126 ']'
- + conditionalseed='+server.seed 937126'
- + githubuser=dgibbs64
- + githubrepo=linuxgsm
- + githubbranch=master
- + appid=258550
- + servicename=rust-server
- + gamename=Rust
- + engine=unity3d
- +++ readlink -f ./rustserver
- ++ dirname /home/shotgun/rustserver
- + rootdir=/home/shotgun
- +++ readlink -f ./rustserver
- ++ basename /home/shotgun/rustserver
- + selfname=rustserver
- + lockselfname=.rust-server.lock
- + lgsmdir=/home/shotgun/lgsm
- + functionsdir=/home/shotgun/lgsm/functions
- + filesdir=/home/shotgun/serverfiles
- + systemdir=/home/shotgun/serverfiles
- + executabledir=/home/shotgun/serverfiles
- + executable=./RustDedicated
- + serveridentitydir=/home/shotgun/serverfiles/server/rust-server
- + servercfg=server.cfg
- + servercfgdir=/home/shotgun/serverfiles/server/rust-server/cfg
- + servercfgfullpath=/home/shotgun/serverfiles/server/rust-server/cfg/server.cfg
- + servercfgdefault=/home/shotgun/serverfiles/server/rust-server/cfg/lgsm-default.cfg
- + backupdir=/home/shotgun/backups
- + logdays=7
- + gamelogdir=/home/shotgun/log/server
- + scriptlogdir=/home/shotgun/log/script
- + consolelogdir=/home/shotgun/log/console
- + consolelogging=on
- + gamelog=/home/shotgun/log/server/rust-server-game.log
- + scriptlog=/home/shotgun/log/script/rust-server-script.log
- + consolelog=/home/shotgun/log/console/rust-server-console.log
- + emaillog=/home/shotgun/log/script/rust-server-email.log
- ++ date +%Y-%m-%d-%H-%M-%S
- + gamelogfile='"gamelog-2016-08-26-08-07-30.log"'
- ++ date +%d-%m-%Y-%H-%M-%S
- + scriptlogdate=/home/shotgun/log/script/rust-server-script-26-08-2016-08-07-30.log
- ++ date +%d-%m-%Y-%H-%M-%S
- + consolelogdate=/home/shotgun/log/console/rust-server-console-26-08-2016-08-07-30.log
- + core_dl.sh
- + functionfile=core_dl.sh
- + fn_fetch_core_dl
- + github_file_url_dir=lgsm/functions
- + github_file_url_name=core_dl.sh
- + filedir=/home/shotgun/lgsm/functions
- + filename=core_dl.sh
- + githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_dl.sh
- + '[' '!' -f /home/shotgun/lgsm/functions/core_dl.sh ']'
- + source /home/shotgun/lgsm/functions/core_dl.sh
- ++ local commandname=DOWNLOAD
- ++ local commandaction=Download
- ++++ readlink -f /home/shotgun/lgsm/functions/core_dl.sh
- +++ basename /home/shotgun/lgsm/functions/core_dl.sh
- ++ local function_selfname=core_dl.sh
- + core_functions.sh
- + functionfile=core_functions.sh
- + fn_fetch_core_dl
- + github_file_url_dir=lgsm/functions
- + github_file_url_name=core_functions.sh
- + filedir=/home/shotgun/lgsm/functions
- + filename=core_functions.sh
- + githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_functions.sh
- + '[' '!' -f /home/shotgun/lgsm/functions/core_functions.sh ']'
- + source /home/shotgun/lgsm/functions/core_functions.sh
- ++ '[' -z /home/shotgun/lgsm ']'
- ++ core_trap.sh
- ++ functionfile=core_trap.sh
- ++ fn_fetch_core_dl
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_trap.sh
- ++ filedir=/home/shotgun/lgsm/functions
- ++ filename=core_trap.sh
- ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_trap.sh
- ++ '[' '!' -f /home/shotgun/lgsm/functions/core_trap.sh ']'
- ++ source /home/shotgun/lgsm/functions/core_trap.sh
- +++ trap fn_exit_trap INT
- ++ core_messages.sh
- ++ functionfile=core_messages.sh
- ++ fn_fetch_core_dl
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_messages.sh
- ++ filedir=/home/shotgun/lgsm/functions
- ++ filename=core_messages.sh
- ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_messages.sh
- ++ '[' '!' -f /home/shotgun/lgsm/functions/core_messages.sh ']'
- ++ source /home/shotgun/lgsm/functions/core_messages.sh
- +++ '[' '' '!=' off ']'
- +++ default='\e[0m'
- +++ red='\e[31m'
- +++ green='\e[32m'
- +++ yellow='\e[33m'
- +++ blue='\e[34m'
- +++ magenta='\e[35m'
- +++ cyan='\e[36m'
- +++ lightyellow='\e[93m'
- +++ creeol='\r\033[K'
- ++ core_dl.sh
- ++ functionfile=core_dl.sh
- ++ fn_fetch_core_dl
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=core_dl.sh
- ++ filedir=/home/shotgun/lgsm/functions
- ++ filename=core_dl.sh
- ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_dl.sh
- ++ '[' '!' -f /home/shotgun/lgsm/functions/core_dl.sh ']'
- ++ source /home/shotgun/lgsm/functions/core_dl.sh
- +++ local commandname=DOWNLOAD
- +++ local commandaction=Download
- +++++ readlink -f /home/shotgun/lgsm/functions/core_dl.sh
- ++++ basename /home/shotgun/lgsm/functions/core_dl.sh
- +++ local function_selfname=core_dl.sh
- + getopt=backup
- + core_getopt.sh
- + functionfile=core_getopt.sh
- + fn_fetch_core_dl
- + github_file_url_dir=lgsm/functions
- + github_file_url_name=core_getopt.sh
- + filedir=/home/shotgun/lgsm/functions
- + filename=core_getopt.sh
- + githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_getopt.sh
- + '[' '!' -f /home/shotgun/lgsm/functions/core_getopt.sh ']'
- + source /home/shotgun/lgsm/functions/core_getopt.sh
- ++++ readlink -f /home/shotgun/lgsm/functions/core_getopt.sh
- +++ basename /home/shotgun/lgsm/functions/core_getopt.sh
- ++ local function_selfname=core_getopt.sh
- ++ '[' Rust == Mumble ']'
- ++ '[' Rust == 'Teamspeak 3' ']'
- ++ '[' Rust == 'Garry'\''s Mod' ']'
- ++ '[' unity3d == unreal2 ']'
- ++ '[' unity3d == unreal ']'
- ++ fn_getopt_generic
- ++ case "${getopt}" in
- ++ command_backup.sh
- ++ functionfile=command_backup.sh
- ++ fn_fetch_function
- ++ github_file_url_dir=lgsm/functions
- ++ github_file_url_name=command_backup.sh
- ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh
- ++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh
- ++ filedir=/home/shotgun/lgsm/functions
- ++ filename=command_backup.sh
- ++ executecmd=executecmd
- ++ run=run
- ++ force=noforce
- ++ md5=nomd5
- ++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh /home/shotgun/lgsm/functions command_backup.sh executecmd run noforce nomd5
- ++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh
- ++ filedir=/home/shotgun/lgsm/functions
- ++ filename=command_backup.sh
- ++ executecmd=executecmd
- ++ run=run
- ++ force=noforce
- ++ md5=nomd5
- ++ '[' '!' -f /home/shotgun/lgsm/functions/command_backup.sh ']'
- ++ '[' -f /home/shotgun/lgsm/functions/command_backup.sh ']'
- ++ fn_dl_md5
- ++ '[' nomd5 '!=' 0 ']'
- ++ '[' nomd5 '!=' nomd5 ']'
- ++ '[' run == run ']'
- ++ source /home/shotgun/lgsm/functions/command_backup.sh
- +++ local commandname=BACKUP
- +++ local commandaction=Backup
- +++++ readlink -f /home/shotgun/lgsm/functions/command_backup.sh
- ++++ basename /home/shotgun/lgsm/functions/command_backup.sh
- +++ local function_selfname=command_backup.sh
- +++ check.sh
- +++ functionfile=check.sh
- +++ fn_fetch_function
- +++ github_file_url_dir=lgsm/functions
- +++ github_file_url_name=check.sh
- +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh
- +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=check.sh
- +++ executecmd=executecmd
- +++ run=run
- +++ force=noforce
- +++ md5=nomd5
- +++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh /home/shotgun/lgsm/functions check.sh executecmd run noforce nomd5
- +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=check.sh
- +++ executecmd=executecmd
- +++ run=run
- +++ force=noforce
- +++ md5=nomd5
- +++ '[' '!' -f /home/shotgun/lgsm/functions/check.sh ']'
- +++ '[' -f /home/shotgun/lgsm/functions/check.sh ']'
- +++ fn_dl_md5
- +++ '[' nomd5 '!=' 0 ']'
- +++ '[' nomd5 '!=' nomd5 ']'
- +++ '[' run == run ']'
- +++ source /home/shotgun/lgsm/functions/check.sh
- ++++ local commandname=CHECK
- ++++ check_root.sh
- ++++ functionfile=check_root.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check_root.sh
- ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_root.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh /home/shotgun/lgsm/functions check_root.sh executecmd run noforce nomd5
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_root.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_root.sh ']'
- ++++ '[' -f /home/shotgun/lgsm/functions/check_root.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/shotgun/lgsm/functions/check_root.sh
- +++++ local commandname=CHECK
- +++++++ readlink -f /home/shotgun/lgsm/functions/check_root.sh
- ++++++ basename /home/shotgun/lgsm/functions/check_root.sh
- +++++ local function_selfname=check_root.sh
- ++++++ whoami
- +++++ '[' shotgun = root ']'
- ++++ check_permissions.sh
- ++++ functionfile=check_permissions.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check_permissions.sh
- ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_permissions.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh /home/shotgun/lgsm/functions check_permissions.sh executecmd run noforce nomd5
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_permissions.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_permissions.sh ']'
- ++++ '[' -f /home/shotgun/lgsm/functions/check_permissions.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/shotgun/lgsm/functions/check_permissions.sh
- +++++ local commandname=CHECK
- +++++++ readlink -f /home/shotgun/lgsm/functions/check_permissions.sh
- ++++++ basename /home/shotgun/lgsm/functions/check_permissions.sh
- +++++ local function_selfname=check_permissions.sh
- +++++ fn_check_ownership
- ++++++ wc -l
- +++++++ whoami
- ++++++ find /home/shotgun/serverfiles -not -user shotgun
- +++++ '[' 0 -ne 0 ']'
- ++++++ wc -l
- +++++++ whoami
- ++++++ find /home/shotgun/rustserver -not -user shotgun
- +++++ '[' 0 -ne 0 ']'
- +++++ fn_check_permissions
- +++++ '[' -n /home/shotgun/lgsm/functions ']'
- ++++++ find /home/shotgun/lgsm/functions -type f -not -executable
- ++++++ wc -l
- +++++ '[' 0 -ne 0 ']'
- +++++ '[' -n /home/shotgun ']'
- ++++++ stat -c %a /home/shotgun
- +++++ rootdirperm=755
- +++++ userrootdirperm=7
- +++++ grouprootdirperm=5
- +++++ '[' 7 '!=' 7 ']'
- ++++ '[' command_backup.sh '!=' command_install.sh ']'
- ++++ '[' command_backup.sh '!=' command_update_functions.sh ']'
- ++++ check_system_dir.sh
- ++++ functionfile=check_system_dir.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check_system_dir.sh
- ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_system_dir.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh /home/shotgun/lgsm/functions check_system_dir.sh executecmd run noforce nomd5
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_system_dir.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_system_dir.sh ']'
- ++++ '[' -f /home/shotgun/lgsm/functions/check_system_dir.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/shotgun/lgsm/functions/check_system_dir.sh
- +++++ local commandname=CHECK
- +++++++ readlink -f /home/shotgun/lgsm/functions/check_system_dir.sh
- ++++++ basename /home/shotgun/lgsm/functions/check_system_dir.sh
- +++++ local function_selfname=check_system_dir.sh
- +++++ '[' '!' -d /home/shotgun/serverfiles ']'
- ++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_debug.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_install.sh == command_backup.sh ']'
- ++++ allowed_commands_array=(command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_ut99_maps.sh command_monitor.sh command_start.sh command_stop.sh update_check.sh command_validate.sh command_update_functions.sh command_email_test.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_backup.sh == command_backup.sh ']'
- ++++ check_logs.sh
- ++++ functionfile=check_logs.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check_logs.sh
- ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_logs.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh /home/shotgun/lgsm/functions check_logs.sh executecmd run noforce nomd5
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_logs.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_logs.sh ']'
- ++++ '[' -f /home/shotgun/lgsm/functions/check_logs.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/shotgun/lgsm/functions/check_logs.sh
- +++++ local commandname=CHECK
- +++++++ readlink -f /home/shotgun/lgsm/functions/check_logs.sh
- ++++++ basename /home/shotgun/lgsm/functions/check_logs.sh
- +++++ local function_selfname=check_logs.sh
- +++++ '[' '!' -d /home/shotgun/log/script ']'
- +++++ '[' '!' -d /home/shotgun/log/console ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_console.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_debug.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_details.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_unreal2_maps.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_ut99_maps.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_monitor.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_stop.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' update_check.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_validate.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_update_functions.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_email_test.sh == command_backup.sh ']'
- ++++ allowed_commands_array=(command_debug.sh command_start.sh command_stop.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_debug.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_stop.sh == command_backup.sh ']'
- ++++ allowed_commands_array=(command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_debug.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_details.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_monitor.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_stop.sh == command_backup.sh ']'
- ++++ allowed_commands_array=(update_steamcmd.sh command_debug.sh command_start.sh command_validate.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' update_steamcmd.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_debug.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_validate.sh == command_backup.sh ']'
- ++++ allowed_commands_array=(command_console.sh command_start.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_console.sh == command_backup.sh ']'
- ++++ '[' Rust '!=' 'Teamspeak 3' ']'
- ++++ check_tmux.sh
- ++++ functionfile=check_tmux.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check_tmux.sh
- ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_tmux.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh /home/shotgun/lgsm/functions check_tmux.sh executecmd run noforce nomd5
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_tmux.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
- ++++ '[' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/shotgun/lgsm/functions/check_tmux.sh
- +++++ local commandname=CHECK
- +++++++ readlink -f /home/shotgun/lgsm/functions/check_tmux.sh
- ++++++ basename /home/shotgun/lgsm/functions/check_tmux.sh
- +++++ local function_selfname=check_tmux.sh
- ++++++ command -v tmux
- +++++ '[' /usr/bin/tmux ']'
- +++++ :
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ '[' Rust '!=' 'Teamspeak 3' ']'
- ++++ check_tmux.sh
- ++++ functionfile=check_tmux.sh
- ++++ fn_fetch_function
- ++++ github_file_url_dir=lgsm/functions
- ++++ github_file_url_name=check_tmux.sh
- ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_tmux.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh /home/shotgun/lgsm/functions check_tmux.sh executecmd run noforce nomd5
- ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
- ++++ filedir=/home/shotgun/lgsm/functions
- ++++ filename=check_tmux.sh
- ++++ executecmd=executecmd
- ++++ run=run
- ++++ force=noforce
- ++++ md5=nomd5
- ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
- ++++ '[' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
- ++++ fn_dl_md5
- ++++ '[' nomd5 '!=' 0 ']'
- ++++ '[' nomd5 '!=' nomd5 ']'
- ++++ '[' run == run ']'
- ++++ source /home/shotgun/lgsm/functions/check_tmux.sh
- +++++ local commandname=CHECK
- +++++++ readlink -f /home/shotgun/lgsm/functions/check_tmux.sh
- ++++++ basename /home/shotgun/lgsm/functions/check_tmux.sh
- +++++ local function_selfname=check_tmux.sh
- ++++++ command -v tmux
- +++++ '[' /usr/bin/tmux ']'
- +++++ :
- ++++ allowed_commands_array=(command_console.sh command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_console.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_debug.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_details.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_monitor.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_stop.sh == command_backup.sh ']'
- ++++ allowed_commands_array=(command_details.sh command_monitor.sh command_start.sh command_stop.sh command_ts3_server_pass.sh command_update.sh command_details.sh command_validate.sh)
- ++++ local allowed_commands_array
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_details.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_monitor.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_start.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_stop.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_ts3_server_pass.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_update.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_details.sh == command_backup.sh ']'
- ++++ for allowed_command in '"${allowed_commands_array[@]}"'
- ++++ '[' command_validate.sh == command_backup.sh ']'
- +++ info_distro.sh
- +++ functionfile=info_distro.sh
- +++ fn_fetch_function
- +++ github_file_url_dir=lgsm/functions
- +++ github_file_url_name=info_distro.sh
- +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh
- +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=info_distro.sh
- +++ executecmd=executecmd
- +++ run=run
- +++ force=noforce
- +++ md5=nomd5
- +++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh /home/shotgun/lgsm/functions info_distro.sh executecmd run noforce nomd5
- +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=info_distro.sh
- +++ executecmd=executecmd
- +++ run=run
- +++ force=noforce
- +++ md5=nomd5
- +++ '[' '!' -f /home/shotgun/lgsm/functions/info_distro.sh ']'
- +++ '[' -f /home/shotgun/lgsm/functions/info_distro.sh ']'
- +++ fn_dl_md5
- +++ '[' nomd5 '!=' 0 ']'
- +++ '[' nomd5 '!=' nomd5 ']'
- +++ '[' run == run ']'
- +++ source /home/shotgun/lgsm/functions/info_distro.sh
- ++++++ readlink -f /home/shotgun/lgsm/functions/info_distro.sh
- +++++ basename /home/shotgun/lgsm/functions/info_distro.sh
- ++++ local function_selfname=info_distro.sh
- +++++ uname -m
- ++++ arch=x86_64
- +++++ uname -r
- ++++ kernel=3.16.0-4-amd64
- +++++ command -v lsb_release
- ++++ '[' -n /usr/bin/lsb_release ']'
- +++++ lsb_release -s -d
- ++++ os='Debian GNU/Linux 8.5 (jessie)'
- +++++ ldd --version
- +++++ sed -n '1s/.* //p'
- ++++ glibcversion=2.19
- +++++ command -v tmux
- ++++ '[' -z /usr/bin/tmux ']'
- +++++ tmux -V
- +++++ sed 's/tmux //'
- +++++ sed -n '1 p'
- +++++ tr -cd '[:digit:]'
- ++++ '[' 19 -lt 16 ']'
- +++++ tmux -V
- ++++ tmuxv='tmux 1.9'
- ++++ uptime='1837268.21 13948009.27'
- ++++ uptime=1837268
- ++++ minutes=21
- ++++ hours=6
- ++++ days=21
- +++++ uptime
- +++++ awk -F 'load average: ' '{ print $2 }'
- ++++ load='0.78, 0.65, 0.65'
- +++++ free -h
- +++++ echo 0
- ++++ '[' 0 -ne 0 ']'
- ++++ humanreadable=-h
- +++++ free -h
- +++++ awk '/Mem:/ {print $2}'
- ++++ physmemtotal=31G
- +++++ free -h
- +++++ awk '/Mem:/ {print $3}'
- ++++ physmemused=8.0G
- +++++ free -h
- +++++ awk '/Mem:/ {print $4}'
- ++++ physmemfree=23G
- +++++ free -h
- +++++ awk '/Swap:/ {print $2}'
- ++++ swaptotal=4.5G
- +++++ free -h
- +++++ awk '/Swap:/ {print $3}'
- ++++ swapused=0B
- +++++ free -h
- +++++ awk '/Swap:/ {print $4}'
- ++++ swapfree=4.5G
- +++++ df -hP /home/shotgun
- +++++ grep -v Filesystem
- +++++ awk '{print $1}'
- ++++ filesystem=/dev/sda1
- +++++ df -hP /home/shotgun
- +++++ grep -v Filesystem
- +++++ awk '{print $2}'
- ++++ totalspace=105G
- +++++ df -hP /home/shotgun
- +++++ grep -v Filesystem
- +++++ awk '{print $3}'
- ++++ usedspace=25G
- +++++ df -hP /home/shotgun
- +++++ grep -v Filesystem
- +++++ awk '{print $4}'
- ++++ availspace=76G
- +++++ du -sh /home/shotgun
- +++++ awk '{print $1}'
- ++++ rootdirdu=6.9G
- ++++ '[' -z 6.9G ']'
- +++++ du -sh /home/shotgun/serverfiles
- +++++ awk '{print $1}'
- ++++ filesdirdu=4.2G
- ++++ '[' -z 4.2G ']'
- +++++ du -sh --exclude=/home/shotgun/backups /home/shotgun/serverfiles
- +++++ awk '{print $1}'
- ++++ rootdirduexbackup=4.2G
- ++++ '[' -z 4.2G ']'
- ++++ '[' -d /home/shotgun/backups ']'
- +++++ du -sh /home/shotgun/backups
- +++++ awk '{print $1}'
- ++++ backupdirdu=2.5G
- ++++ '[' -z 2.5G ']'
- +++++ find /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
- +++++ wc -l
- ++++ backupcount=1
- +++++ ls -t /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
- +++++ head -1
- ++++ lastbackup=/home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
- +++++ date -r /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
- ++++ lastbackupdate='Fri Aug 26 06:41:06 PDT 2016'
- +++++ du -h /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
- +++++ awk '{print $1}'
- ++++ lastbackupsize=2.5G
- ++++ date +%Y-%m-%d-%H%M%S
- +++ backupname=rust-server-2016-08-26-080731
- +++ fn_print_dots ''
- +++ '[' -n Backup ']'
- +++ echo -en '\r\033[K[ .... ] Backup rust-server: '
- +++ sleep 0.5
- +++ fn_print_info_nl 'A total of 4.2G will be compressed into the following backup:'
- +++ '[' -n Backup ']'
- +++ echo -en '\r\033[K[\e[36m INFO \e[0m] Backup rust-server: A total of 4.2G will be compressed into the following backup:'
- +++ sleep 0.5
- +++ echo -en '\n'
- +++ echo /home/shotgun/backups/rust-server-2016-08-26-080731.tar.gz
- +++ echo ''
- +++ true
- +++ read -e -i y -p 'Continue? [Y/N]' yn
- +++ case $yn in
- +++ break
- +++ echo ''
- +++ check_status.sh
- +++ functionfile=check_status.sh
- +++ fn_fetch_function
- +++ github_file_url_dir=lgsm/functions
- +++ github_file_url_name=check_status.sh
- +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh
- +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=check_status.sh
- +++ executecmd=executecmd
- +++ run=run
- +++ force=noforce
- +++ md5=nomd5
- +++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh /home/shotgun/lgsm/functions check_status.sh executecmd run noforce nomd5
- +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=check_status.sh
- +++ executecmd=executecmd
- +++ run=run
- +++ force=noforce
- +++ md5=nomd5
- +++ '[' '!' -f /home/shotgun/lgsm/functions/check_status.sh ']'
- +++ '[' -f /home/shotgun/lgsm/functions/check_status.sh ']'
- +++ fn_dl_md5
- +++ '[' nomd5 '!=' 0 ']'
- +++ '[' nomd5 '!=' nomd5 ']'
- +++ '[' run == run ']'
- +++ source /home/shotgun/lgsm/functions/check_status.sh
- ++++ local commandname=CHECK
- ++++++ readlink -f /home/shotgun/lgsm/functions/check_status.sh
- +++++ basename /home/shotgun/lgsm/functions/check_status.sh
- ++++ local function_selfname=check_status.sh
- ++++ '[' Rust == 'Teamspeak 3' ']'
- +++++ tmux list-sessions
- +++++ awk '{print $1}'
- +++++ grep -Ec '^rust-server:'
- ++++ status=0
- +++ '[' 0 '!=' 0 ']'
- +++ fn_print_dots 'Backup in progress, please wait...'
- +++ '[' -n Backup ']'
- +++ echo -en '\r\033[K[ .... ] Backup rust-server: Backup in progress, please wait...'
- +++ fn_script_log_info 'Started backup'
- +++ '[' -n BACKUP ']'
- ++++ date '+%b %d %H:%M:%S'
- +++ echo -e 'Aug 26 08:07:33 rust-server: BACKUP: INFO: Started backup'
- +++ sleep 2
- +++ '[' '!' -d /home/shotgun/backups ']'
- +++ tar -czf /home/shotgun/backups/rust-server-2016-08-26-080731.tar.gz -C /home/shotgun --exclude backups ./backups ./config.d ./dev-debug.log ./lgsm ./log ./oxide.d ./rustserver ./serverfiles ./Steam ./steamcmd ./zip-updater
- +++ '[' 0 '!=' 0 ']'
- +++ fn_print_error_nl 'Backup failed: rust-server-2016-08-26-080731.tar.gz'
- +++ '[' -n Backup ']'
- +++ echo -en '\r\033[K[\e[31mERROR \e[0m] Backup rust-server: Backup failed: rust-server-2016-08-26-080731.tar.gz'
- +++ sleep 0.5
- +++ echo -en '\n'
- +++ fn_script_log_error 'Backup failed: rust-server-2016-08-26-080731.tar.gz'
- +++ '[' -n BACKUP ']'
- ++++ date '+%b %d %H:%M:%S'
- +++ echo -e 'Aug 26 08:12:31 rust-server: BACKUP: ERROR: Backup failed: rust-server-2016-08-26-080731.tar.gz'
- +++ exitcode=2
- +++ sleep 1
- +++ echo ''
- +++ core_exit.sh
- +++ functionfile=core_exit.sh
- +++ fn_fetch_core_dl
- +++ github_file_url_dir=lgsm/functions
- +++ github_file_url_name=core_exit.sh
- +++ filedir=/home/shotgun/lgsm/functions
- +++ filename=core_exit.sh
- +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_exit.sh
- +++ '[' '!' -f /home/shotgun/lgsm/functions/core_exit.sh ']'
- +++ source /home/shotgun/lgsm/functions/core_exit.sh
- ++++ '[' -n '' ']'
- ++++ '[' -n 2 ']'
- ++++ '[' 2 '!=' 0 ']'
- ++++ '[' 2 == 1 ']'
- ++++ '[' 2 == 2 ']'
- ++++ fn_script_log_error 'command_backup.sh exiting with code: 2'
- ++++ '[' -n BACKUP ']'
- +++++ date '+%b %d %H:%M:%S'
- ++++ echo -e 'Aug 26 08:12:32 rust-server: BACKUP: ERROR: command_backup.sh exiting with code: 2'
- ++++ exitcode=2
- ++++ fn_exit_dev_debug
- ++++ '[' -f /home/shotgun/.dev-debug ']'
- ++++ echo ''
- ++++ echo 'command_backup.sh exiting with code: 2'
- ++++ trap - INT
- ++++ exit 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement