Advertisement
Guest User

Backup-Error_Dev-Debug_Rust

a guest
Aug 26th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.22 KB | None | 0 0
  1. + version=210516
  2. + emailalert=on
  3. + email=peter.aretino@gmail.com
  4. + pushbulletalert=on
  5. + pushbullettoken=o.6YLbX2N53qYG2HxzoLyNzT1q6ZdbFXjU
  6. + steamuser=anonymous
  7. + steampass=
  8. + servername='The Rust of Two Cities'
  9. + ip=216.176.200.50
  10. + updateonstart=on
  11. + port=28015
  12. + rconport=28016
  13. + rconpassword='Ih8shmu5&app13sH'
  14. + maxplayers=75
  15. + seed=937126
  16. + worldsize=4000
  17. + saveinterval=300
  18. + tickrate=30
  19. + '[' -n 937126 ']'
  20. + conditionalseed='+server.seed 937126'
  21. + githubuser=dgibbs64
  22. + githubrepo=linuxgsm
  23. + githubbranch=master
  24. + appid=258550
  25. + servicename=rust-server
  26. + gamename=Rust
  27. + engine=unity3d
  28. +++ readlink -f ./rustserver
  29. ++ dirname /home/shotgun/rustserver
  30. + rootdir=/home/shotgun
  31. +++ readlink -f ./rustserver
  32. ++ basename /home/shotgun/rustserver
  33. + selfname=rustserver
  34. + lockselfname=.rust-server.lock
  35. + lgsmdir=/home/shotgun/lgsm
  36. + functionsdir=/home/shotgun/lgsm/functions
  37. + filesdir=/home/shotgun/serverfiles
  38. + systemdir=/home/shotgun/serverfiles
  39. + executabledir=/home/shotgun/serverfiles
  40. + executable=./RustDedicated
  41. + serveridentitydir=/home/shotgun/serverfiles/server/rust-server
  42. + servercfg=server.cfg
  43. + servercfgdir=/home/shotgun/serverfiles/server/rust-server/cfg
  44. + servercfgfullpath=/home/shotgun/serverfiles/server/rust-server/cfg/server.cfg
  45. + servercfgdefault=/home/shotgun/serverfiles/server/rust-server/cfg/lgsm-default.cfg
  46. + backupdir=/home/shotgun/backups
  47. + logdays=7
  48. + gamelogdir=/home/shotgun/log/server
  49. + scriptlogdir=/home/shotgun/log/script
  50. + consolelogdir=/home/shotgun/log/console
  51. + consolelogging=on
  52. + gamelog=/home/shotgun/log/server/rust-server-game.log
  53. + scriptlog=/home/shotgun/log/script/rust-server-script.log
  54. + consolelog=/home/shotgun/log/console/rust-server-console.log
  55. + emaillog=/home/shotgun/log/script/rust-server-email.log
  56. ++ date +%Y-%m-%d-%H-%M-%S
  57. + gamelogfile='"gamelog-2016-08-26-08-07-30.log"'
  58. ++ date +%d-%m-%Y-%H-%M-%S
  59. + scriptlogdate=/home/shotgun/log/script/rust-server-script-26-08-2016-08-07-30.log
  60. ++ date +%d-%m-%Y-%H-%M-%S
  61. + consolelogdate=/home/shotgun/log/console/rust-server-console-26-08-2016-08-07-30.log
  62. + core_dl.sh
  63. + functionfile=core_dl.sh
  64. + fn_fetch_core_dl
  65. + github_file_url_dir=lgsm/functions
  66. + github_file_url_name=core_dl.sh
  67. + filedir=/home/shotgun/lgsm/functions
  68. + filename=core_dl.sh
  69. + githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_dl.sh
  70. + '[' '!' -f /home/shotgun/lgsm/functions/core_dl.sh ']'
  71. + source /home/shotgun/lgsm/functions/core_dl.sh
  72. ++ local commandname=DOWNLOAD
  73. ++ local commandaction=Download
  74. ++++ readlink -f /home/shotgun/lgsm/functions/core_dl.sh
  75. +++ basename /home/shotgun/lgsm/functions/core_dl.sh
  76. ++ local function_selfname=core_dl.sh
  77. + core_functions.sh
  78. + functionfile=core_functions.sh
  79. + fn_fetch_core_dl
  80. + github_file_url_dir=lgsm/functions
  81. + github_file_url_name=core_functions.sh
  82. + filedir=/home/shotgun/lgsm/functions
  83. + filename=core_functions.sh
  84. + githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_functions.sh
  85. + '[' '!' -f /home/shotgun/lgsm/functions/core_functions.sh ']'
  86. + source /home/shotgun/lgsm/functions/core_functions.sh
  87. ++ '[' -z /home/shotgun/lgsm ']'
  88. ++ core_trap.sh
  89. ++ functionfile=core_trap.sh
  90. ++ fn_fetch_core_dl
  91. ++ github_file_url_dir=lgsm/functions
  92. ++ github_file_url_name=core_trap.sh
  93. ++ filedir=/home/shotgun/lgsm/functions
  94. ++ filename=core_trap.sh
  95. ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_trap.sh
  96. ++ '[' '!' -f /home/shotgun/lgsm/functions/core_trap.sh ']'
  97. ++ source /home/shotgun/lgsm/functions/core_trap.sh
  98. +++ trap fn_exit_trap INT
  99. ++ core_messages.sh
  100. ++ functionfile=core_messages.sh
  101. ++ fn_fetch_core_dl
  102. ++ github_file_url_dir=lgsm/functions
  103. ++ github_file_url_name=core_messages.sh
  104. ++ filedir=/home/shotgun/lgsm/functions
  105. ++ filename=core_messages.sh
  106. ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_messages.sh
  107. ++ '[' '!' -f /home/shotgun/lgsm/functions/core_messages.sh ']'
  108. ++ source /home/shotgun/lgsm/functions/core_messages.sh
  109. +++ '[' '' '!=' off ']'
  110. +++ default='\e[0m'
  111. +++ red='\e[31m'
  112. +++ green='\e[32m'
  113. +++ yellow='\e[33m'
  114. +++ blue='\e[34m'
  115. +++ magenta='\e[35m'
  116. +++ cyan='\e[36m'
  117. +++ lightyellow='\e[93m'
  118. +++ creeol='\r\033[K'
  119. ++ core_dl.sh
  120. ++ functionfile=core_dl.sh
  121. ++ fn_fetch_core_dl
  122. ++ github_file_url_dir=lgsm/functions
  123. ++ github_file_url_name=core_dl.sh
  124. ++ filedir=/home/shotgun/lgsm/functions
  125. ++ filename=core_dl.sh
  126. ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_dl.sh
  127. ++ '[' '!' -f /home/shotgun/lgsm/functions/core_dl.sh ']'
  128. ++ source /home/shotgun/lgsm/functions/core_dl.sh
  129. +++ local commandname=DOWNLOAD
  130. +++ local commandaction=Download
  131. +++++ readlink -f /home/shotgun/lgsm/functions/core_dl.sh
  132. ++++ basename /home/shotgun/lgsm/functions/core_dl.sh
  133. +++ local function_selfname=core_dl.sh
  134. + getopt=backup
  135. + core_getopt.sh
  136. + functionfile=core_getopt.sh
  137. + fn_fetch_core_dl
  138. + github_file_url_dir=lgsm/functions
  139. + github_file_url_name=core_getopt.sh
  140. + filedir=/home/shotgun/lgsm/functions
  141. + filename=core_getopt.sh
  142. + githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_getopt.sh
  143. + '[' '!' -f /home/shotgun/lgsm/functions/core_getopt.sh ']'
  144. + source /home/shotgun/lgsm/functions/core_getopt.sh
  145. ++++ readlink -f /home/shotgun/lgsm/functions/core_getopt.sh
  146. +++ basename /home/shotgun/lgsm/functions/core_getopt.sh
  147. ++ local function_selfname=core_getopt.sh
  148. ++ '[' Rust == Mumble ']'
  149. ++ '[' Rust == 'Teamspeak 3' ']'
  150. ++ '[' Rust == 'Garry'\''s Mod' ']'
  151. ++ '[' unity3d == unreal2 ']'
  152. ++ '[' unity3d == unreal ']'
  153. ++ fn_getopt_generic
  154. ++ case "${getopt}" in
  155. ++ command_backup.sh
  156. ++ functionfile=command_backup.sh
  157. ++ fn_fetch_function
  158. ++ github_file_url_dir=lgsm/functions
  159. ++ github_file_url_name=command_backup.sh
  160. ++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh
  161. ++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh
  162. ++ filedir=/home/shotgun/lgsm/functions
  163. ++ filename=command_backup.sh
  164. ++ executecmd=executecmd
  165. ++ run=run
  166. ++ force=noforce
  167. ++ md5=nomd5
  168. ++ 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
  169. ++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/command_backup.sh
  170. ++ filedir=/home/shotgun/lgsm/functions
  171. ++ filename=command_backup.sh
  172. ++ executecmd=executecmd
  173. ++ run=run
  174. ++ force=noforce
  175. ++ md5=nomd5
  176. ++ '[' '!' -f /home/shotgun/lgsm/functions/command_backup.sh ']'
  177. ++ '[' -f /home/shotgun/lgsm/functions/command_backup.sh ']'
  178. ++ fn_dl_md5
  179. ++ '[' nomd5 '!=' 0 ']'
  180. ++ '[' nomd5 '!=' nomd5 ']'
  181. ++ '[' run == run ']'
  182. ++ source /home/shotgun/lgsm/functions/command_backup.sh
  183. +++ local commandname=BACKUP
  184. +++ local commandaction=Backup
  185. +++++ readlink -f /home/shotgun/lgsm/functions/command_backup.sh
  186. ++++ basename /home/shotgun/lgsm/functions/command_backup.sh
  187. +++ local function_selfname=command_backup.sh
  188. +++ check.sh
  189. +++ functionfile=check.sh
  190. +++ fn_fetch_function
  191. +++ github_file_url_dir=lgsm/functions
  192. +++ github_file_url_name=check.sh
  193. +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh
  194. +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh
  195. +++ filedir=/home/shotgun/lgsm/functions
  196. +++ filename=check.sh
  197. +++ executecmd=executecmd
  198. +++ run=run
  199. +++ force=noforce
  200. +++ md5=nomd5
  201. +++ fn_fetch_file https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh /home/shotgun/lgsm/functions check.sh executecmd run noforce nomd5
  202. +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check.sh
  203. +++ filedir=/home/shotgun/lgsm/functions
  204. +++ filename=check.sh
  205. +++ executecmd=executecmd
  206. +++ run=run
  207. +++ force=noforce
  208. +++ md5=nomd5
  209. +++ '[' '!' -f /home/shotgun/lgsm/functions/check.sh ']'
  210. +++ '[' -f /home/shotgun/lgsm/functions/check.sh ']'
  211. +++ fn_dl_md5
  212. +++ '[' nomd5 '!=' 0 ']'
  213. +++ '[' nomd5 '!=' nomd5 ']'
  214. +++ '[' run == run ']'
  215. +++ source /home/shotgun/lgsm/functions/check.sh
  216. ++++ local commandname=CHECK
  217. ++++ check_root.sh
  218. ++++ functionfile=check_root.sh
  219. ++++ fn_fetch_function
  220. ++++ github_file_url_dir=lgsm/functions
  221. ++++ github_file_url_name=check_root.sh
  222. ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh
  223. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh
  224. ++++ filedir=/home/shotgun/lgsm/functions
  225. ++++ filename=check_root.sh
  226. ++++ executecmd=executecmd
  227. ++++ run=run
  228. ++++ force=noforce
  229. ++++ md5=nomd5
  230. ++++ 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
  231. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_root.sh
  232. ++++ filedir=/home/shotgun/lgsm/functions
  233. ++++ filename=check_root.sh
  234. ++++ executecmd=executecmd
  235. ++++ run=run
  236. ++++ force=noforce
  237. ++++ md5=nomd5
  238. ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_root.sh ']'
  239. ++++ '[' -f /home/shotgun/lgsm/functions/check_root.sh ']'
  240. ++++ fn_dl_md5
  241. ++++ '[' nomd5 '!=' 0 ']'
  242. ++++ '[' nomd5 '!=' nomd5 ']'
  243. ++++ '[' run == run ']'
  244. ++++ source /home/shotgun/lgsm/functions/check_root.sh
  245. +++++ local commandname=CHECK
  246. +++++++ readlink -f /home/shotgun/lgsm/functions/check_root.sh
  247. ++++++ basename /home/shotgun/lgsm/functions/check_root.sh
  248. +++++ local function_selfname=check_root.sh
  249. ++++++ whoami
  250. +++++ '[' shotgun = root ']'
  251. ++++ check_permissions.sh
  252. ++++ functionfile=check_permissions.sh
  253. ++++ fn_fetch_function
  254. ++++ github_file_url_dir=lgsm/functions
  255. ++++ github_file_url_name=check_permissions.sh
  256. ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh
  257. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh
  258. ++++ filedir=/home/shotgun/lgsm/functions
  259. ++++ filename=check_permissions.sh
  260. ++++ executecmd=executecmd
  261. ++++ run=run
  262. ++++ force=noforce
  263. ++++ md5=nomd5
  264. ++++ 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
  265. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_permissions.sh
  266. ++++ filedir=/home/shotgun/lgsm/functions
  267. ++++ filename=check_permissions.sh
  268. ++++ executecmd=executecmd
  269. ++++ run=run
  270. ++++ force=noforce
  271. ++++ md5=nomd5
  272. ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_permissions.sh ']'
  273. ++++ '[' -f /home/shotgun/lgsm/functions/check_permissions.sh ']'
  274. ++++ fn_dl_md5
  275. ++++ '[' nomd5 '!=' 0 ']'
  276. ++++ '[' nomd5 '!=' nomd5 ']'
  277. ++++ '[' run == run ']'
  278. ++++ source /home/shotgun/lgsm/functions/check_permissions.sh
  279. +++++ local commandname=CHECK
  280. +++++++ readlink -f /home/shotgun/lgsm/functions/check_permissions.sh
  281. ++++++ basename /home/shotgun/lgsm/functions/check_permissions.sh
  282. +++++ local function_selfname=check_permissions.sh
  283. +++++ fn_check_ownership
  284. ++++++ wc -l
  285. +++++++ whoami
  286. ++++++ find /home/shotgun/serverfiles -not -user shotgun
  287. +++++ '[' 0 -ne 0 ']'
  288. ++++++ wc -l
  289. +++++++ whoami
  290. ++++++ find /home/shotgun/rustserver -not -user shotgun
  291. +++++ '[' 0 -ne 0 ']'
  292. +++++ fn_check_permissions
  293. +++++ '[' -n /home/shotgun/lgsm/functions ']'
  294. ++++++ find /home/shotgun/lgsm/functions -type f -not -executable
  295. ++++++ wc -l
  296. +++++ '[' 0 -ne 0 ']'
  297. +++++ '[' -n /home/shotgun ']'
  298. ++++++ stat -c %a /home/shotgun
  299. +++++ rootdirperm=755
  300. +++++ userrootdirperm=7
  301. +++++ grouprootdirperm=5
  302. +++++ '[' 7 '!=' 7 ']'
  303. ++++ '[' command_backup.sh '!=' command_install.sh ']'
  304. ++++ '[' command_backup.sh '!=' command_update_functions.sh ']'
  305. ++++ check_system_dir.sh
  306. ++++ functionfile=check_system_dir.sh
  307. ++++ fn_fetch_function
  308. ++++ github_file_url_dir=lgsm/functions
  309. ++++ github_file_url_name=check_system_dir.sh
  310. ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh
  311. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh
  312. ++++ filedir=/home/shotgun/lgsm/functions
  313. ++++ filename=check_system_dir.sh
  314. ++++ executecmd=executecmd
  315. ++++ run=run
  316. ++++ force=noforce
  317. ++++ md5=nomd5
  318. ++++ 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
  319. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_system_dir.sh
  320. ++++ filedir=/home/shotgun/lgsm/functions
  321. ++++ filename=check_system_dir.sh
  322. ++++ executecmd=executecmd
  323. ++++ run=run
  324. ++++ force=noforce
  325. ++++ md5=nomd5
  326. ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_system_dir.sh ']'
  327. ++++ '[' -f /home/shotgun/lgsm/functions/check_system_dir.sh ']'
  328. ++++ fn_dl_md5
  329. ++++ '[' nomd5 '!=' 0 ']'
  330. ++++ '[' nomd5 '!=' nomd5 ']'
  331. ++++ '[' run == run ']'
  332. ++++ source /home/shotgun/lgsm/functions/check_system_dir.sh
  333. +++++ local commandname=CHECK
  334. +++++++ readlink -f /home/shotgun/lgsm/functions/check_system_dir.sh
  335. ++++++ basename /home/shotgun/lgsm/functions/check_system_dir.sh
  336. +++++ local function_selfname=check_system_dir.sh
  337. +++++ '[' '!' -d /home/shotgun/serverfiles ']'
  338. ++++ allowed_commands_array=(command_debug.sh command_start.sh command_install.sh)
  339. ++++ local allowed_commands_array
  340. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  341. ++++ '[' command_debug.sh == command_backup.sh ']'
  342. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  343. ++++ '[' command_start.sh == command_backup.sh ']'
  344. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  345. ++++ '[' command_install.sh == command_backup.sh ']'
  346. ++++ 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)
  347. ++++ local allowed_commands_array
  348. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  349. ++++ '[' command_backup.sh == command_backup.sh ']'
  350. ++++ check_logs.sh
  351. ++++ functionfile=check_logs.sh
  352. ++++ fn_fetch_function
  353. ++++ github_file_url_dir=lgsm/functions
  354. ++++ github_file_url_name=check_logs.sh
  355. ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh
  356. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh
  357. ++++ filedir=/home/shotgun/lgsm/functions
  358. ++++ filename=check_logs.sh
  359. ++++ executecmd=executecmd
  360. ++++ run=run
  361. ++++ force=noforce
  362. ++++ md5=nomd5
  363. ++++ 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
  364. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_logs.sh
  365. ++++ filedir=/home/shotgun/lgsm/functions
  366. ++++ filename=check_logs.sh
  367. ++++ executecmd=executecmd
  368. ++++ run=run
  369. ++++ force=noforce
  370. ++++ md5=nomd5
  371. ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_logs.sh ']'
  372. ++++ '[' -f /home/shotgun/lgsm/functions/check_logs.sh ']'
  373. ++++ fn_dl_md5
  374. ++++ '[' nomd5 '!=' 0 ']'
  375. ++++ '[' nomd5 '!=' nomd5 ']'
  376. ++++ '[' run == run ']'
  377. ++++ source /home/shotgun/lgsm/functions/check_logs.sh
  378. +++++ local commandname=CHECK
  379. +++++++ readlink -f /home/shotgun/lgsm/functions/check_logs.sh
  380. ++++++ basename /home/shotgun/lgsm/functions/check_logs.sh
  381. +++++ local function_selfname=check_logs.sh
  382. +++++ '[' '!' -d /home/shotgun/log/script ']'
  383. +++++ '[' '!' -d /home/shotgun/log/console ']'
  384. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  385. ++++ '[' command_console.sh == command_backup.sh ']'
  386. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  387. ++++ '[' command_debug.sh == command_backup.sh ']'
  388. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  389. ++++ '[' command_details.sh == command_backup.sh ']'
  390. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  391. ++++ '[' command_unreal2_maps.sh == command_backup.sh ']'
  392. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  393. ++++ '[' command_ut99_maps.sh == command_backup.sh ']'
  394. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  395. ++++ '[' command_monitor.sh == command_backup.sh ']'
  396. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  397. ++++ '[' command_start.sh == command_backup.sh ']'
  398. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  399. ++++ '[' command_stop.sh == command_backup.sh ']'
  400. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  401. ++++ '[' update_check.sh == command_backup.sh ']'
  402. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  403. ++++ '[' command_validate.sh == command_backup.sh ']'
  404. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  405. ++++ '[' command_update_functions.sh == command_backup.sh ']'
  406. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  407. ++++ '[' command_email_test.sh == command_backup.sh ']'
  408. ++++ allowed_commands_array=(command_debug.sh command_start.sh command_stop.sh)
  409. ++++ local allowed_commands_array
  410. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  411. ++++ '[' command_debug.sh == command_backup.sh ']'
  412. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  413. ++++ '[' command_start.sh == command_backup.sh ']'
  414. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  415. ++++ '[' command_stop.sh == command_backup.sh ']'
  416. ++++ allowed_commands_array=(command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh)
  417. ++++ local allowed_commands_array
  418. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  419. ++++ '[' command_debug.sh == command_backup.sh ']'
  420. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  421. ++++ '[' command_details.sh == command_backup.sh ']'
  422. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  423. ++++ '[' command_monitor.sh == command_backup.sh ']'
  424. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  425. ++++ '[' command_start.sh == command_backup.sh ']'
  426. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  427. ++++ '[' command_stop.sh == command_backup.sh ']'
  428. ++++ allowed_commands_array=(update_steamcmd.sh command_debug.sh command_start.sh command_validate.sh)
  429. ++++ local allowed_commands_array
  430. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  431. ++++ '[' update_steamcmd.sh == command_backup.sh ']'
  432. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  433. ++++ '[' command_debug.sh == command_backup.sh ']'
  434. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  435. ++++ '[' command_start.sh == command_backup.sh ']'
  436. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  437. ++++ '[' command_validate.sh == command_backup.sh ']'
  438. ++++ allowed_commands_array=(command_console.sh command_start.sh)
  439. ++++ local allowed_commands_array
  440. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  441. ++++ '[' command_console.sh == command_backup.sh ']'
  442. ++++ '[' Rust '!=' 'Teamspeak 3' ']'
  443. ++++ check_tmux.sh
  444. ++++ functionfile=check_tmux.sh
  445. ++++ fn_fetch_function
  446. ++++ github_file_url_dir=lgsm/functions
  447. ++++ github_file_url_name=check_tmux.sh
  448. ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
  449. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
  450. ++++ filedir=/home/shotgun/lgsm/functions
  451. ++++ filename=check_tmux.sh
  452. ++++ executecmd=executecmd
  453. ++++ run=run
  454. ++++ force=noforce
  455. ++++ md5=nomd5
  456. ++++ 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
  457. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
  458. ++++ filedir=/home/shotgun/lgsm/functions
  459. ++++ filename=check_tmux.sh
  460. ++++ executecmd=executecmd
  461. ++++ run=run
  462. ++++ force=noforce
  463. ++++ md5=nomd5
  464. ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
  465. ++++ '[' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
  466. ++++ fn_dl_md5
  467. ++++ '[' nomd5 '!=' 0 ']'
  468. ++++ '[' nomd5 '!=' nomd5 ']'
  469. ++++ '[' run == run ']'
  470. ++++ source /home/shotgun/lgsm/functions/check_tmux.sh
  471. +++++ local commandname=CHECK
  472. +++++++ readlink -f /home/shotgun/lgsm/functions/check_tmux.sh
  473. ++++++ basename /home/shotgun/lgsm/functions/check_tmux.sh
  474. +++++ local function_selfname=check_tmux.sh
  475. ++++++ command -v tmux
  476. +++++ '[' /usr/bin/tmux ']'
  477. +++++ :
  478. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  479. ++++ '[' command_start.sh == command_backup.sh ']'
  480. ++++ '[' Rust '!=' 'Teamspeak 3' ']'
  481. ++++ check_tmux.sh
  482. ++++ functionfile=check_tmux.sh
  483. ++++ fn_fetch_function
  484. ++++ github_file_url_dir=lgsm/functions
  485. ++++ github_file_url_name=check_tmux.sh
  486. ++++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
  487. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
  488. ++++ filedir=/home/shotgun/lgsm/functions
  489. ++++ filename=check_tmux.sh
  490. ++++ executecmd=executecmd
  491. ++++ run=run
  492. ++++ force=noforce
  493. ++++ md5=nomd5
  494. ++++ 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
  495. ++++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_tmux.sh
  496. ++++ filedir=/home/shotgun/lgsm/functions
  497. ++++ filename=check_tmux.sh
  498. ++++ executecmd=executecmd
  499. ++++ run=run
  500. ++++ force=noforce
  501. ++++ md5=nomd5
  502. ++++ '[' '!' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
  503. ++++ '[' -f /home/shotgun/lgsm/functions/check_tmux.sh ']'
  504. ++++ fn_dl_md5
  505. ++++ '[' nomd5 '!=' 0 ']'
  506. ++++ '[' nomd5 '!=' nomd5 ']'
  507. ++++ '[' run == run ']'
  508. ++++ source /home/shotgun/lgsm/functions/check_tmux.sh
  509. +++++ local commandname=CHECK
  510. +++++++ readlink -f /home/shotgun/lgsm/functions/check_tmux.sh
  511. ++++++ basename /home/shotgun/lgsm/functions/check_tmux.sh
  512. +++++ local function_selfname=check_tmux.sh
  513. ++++++ command -v tmux
  514. +++++ '[' /usr/bin/tmux ']'
  515. +++++ :
  516. ++++ allowed_commands_array=(command_console.sh command_debug.sh command_details.sh command_monitor.sh command_start.sh command_stop.sh)
  517. ++++ local allowed_commands_array
  518. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  519. ++++ '[' command_console.sh == command_backup.sh ']'
  520. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  521. ++++ '[' command_debug.sh == command_backup.sh ']'
  522. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  523. ++++ '[' command_details.sh == command_backup.sh ']'
  524. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  525. ++++ '[' command_monitor.sh == command_backup.sh ']'
  526. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  527. ++++ '[' command_start.sh == command_backup.sh ']'
  528. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  529. ++++ '[' command_stop.sh == command_backup.sh ']'
  530. ++++ 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)
  531. ++++ local allowed_commands_array
  532. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  533. ++++ '[' command_details.sh == command_backup.sh ']'
  534. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  535. ++++ '[' command_monitor.sh == command_backup.sh ']'
  536. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  537. ++++ '[' command_start.sh == command_backup.sh ']'
  538. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  539. ++++ '[' command_stop.sh == command_backup.sh ']'
  540. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  541. ++++ '[' command_ts3_server_pass.sh == command_backup.sh ']'
  542. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  543. ++++ '[' command_update.sh == command_backup.sh ']'
  544. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  545. ++++ '[' command_details.sh == command_backup.sh ']'
  546. ++++ for allowed_command in '"${allowed_commands_array[@]}"'
  547. ++++ '[' command_validate.sh == command_backup.sh ']'
  548. +++ info_distro.sh
  549. +++ functionfile=info_distro.sh
  550. +++ fn_fetch_function
  551. +++ github_file_url_dir=lgsm/functions
  552. +++ github_file_url_name=info_distro.sh
  553. +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh
  554. +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh
  555. +++ filedir=/home/shotgun/lgsm/functions
  556. +++ filename=info_distro.sh
  557. +++ executecmd=executecmd
  558. +++ run=run
  559. +++ force=noforce
  560. +++ md5=nomd5
  561. +++ 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
  562. +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/info_distro.sh
  563. +++ filedir=/home/shotgun/lgsm/functions
  564. +++ filename=info_distro.sh
  565. +++ executecmd=executecmd
  566. +++ run=run
  567. +++ force=noforce
  568. +++ md5=nomd5
  569. +++ '[' '!' -f /home/shotgun/lgsm/functions/info_distro.sh ']'
  570. +++ '[' -f /home/shotgun/lgsm/functions/info_distro.sh ']'
  571. +++ fn_dl_md5
  572. +++ '[' nomd5 '!=' 0 ']'
  573. +++ '[' nomd5 '!=' nomd5 ']'
  574. +++ '[' run == run ']'
  575. +++ source /home/shotgun/lgsm/functions/info_distro.sh
  576. ++++++ readlink -f /home/shotgun/lgsm/functions/info_distro.sh
  577. +++++ basename /home/shotgun/lgsm/functions/info_distro.sh
  578. ++++ local function_selfname=info_distro.sh
  579. +++++ uname -m
  580. ++++ arch=x86_64
  581. +++++ uname -r
  582. ++++ kernel=3.16.0-4-amd64
  583. +++++ command -v lsb_release
  584. ++++ '[' -n /usr/bin/lsb_release ']'
  585. +++++ lsb_release -s -d
  586. ++++ os='Debian GNU/Linux 8.5 (jessie)'
  587. +++++ ldd --version
  588. +++++ sed -n '1s/.* //p'
  589. ++++ glibcversion=2.19
  590. +++++ command -v tmux
  591. ++++ '[' -z /usr/bin/tmux ']'
  592. +++++ tmux -V
  593. +++++ sed 's/tmux //'
  594. +++++ sed -n '1 p'
  595. +++++ tr -cd '[:digit:]'
  596. ++++ '[' 19 -lt 16 ']'
  597. +++++ tmux -V
  598. ++++ tmuxv='tmux 1.9'
  599. ++++ uptime='1837268.21 13948009.27'
  600. ++++ uptime=1837268
  601. ++++ minutes=21
  602. ++++ hours=6
  603. ++++ days=21
  604. +++++ uptime
  605. +++++ awk -F 'load average: ' '{ print $2 }'
  606. ++++ load='0.78, 0.65, 0.65'
  607. +++++ free -h
  608. +++++ echo 0
  609. ++++ '[' 0 -ne 0 ']'
  610. ++++ humanreadable=-h
  611. +++++ free -h
  612. +++++ awk '/Mem:/ {print $2}'
  613. ++++ physmemtotal=31G
  614. +++++ free -h
  615. +++++ awk '/Mem:/ {print $3}'
  616. ++++ physmemused=8.0G
  617. +++++ free -h
  618. +++++ awk '/Mem:/ {print $4}'
  619. ++++ physmemfree=23G
  620. +++++ free -h
  621. +++++ awk '/Swap:/ {print $2}'
  622. ++++ swaptotal=4.5G
  623. +++++ free -h
  624. +++++ awk '/Swap:/ {print $3}'
  625. ++++ swapused=0B
  626. +++++ free -h
  627. +++++ awk '/Swap:/ {print $4}'
  628. ++++ swapfree=4.5G
  629. +++++ df -hP /home/shotgun
  630. +++++ grep -v Filesystem
  631. +++++ awk '{print $1}'
  632. ++++ filesystem=/dev/sda1
  633. +++++ df -hP /home/shotgun
  634. +++++ grep -v Filesystem
  635. +++++ awk '{print $2}'
  636. ++++ totalspace=105G
  637. +++++ df -hP /home/shotgun
  638. +++++ grep -v Filesystem
  639. +++++ awk '{print $3}'
  640. ++++ usedspace=25G
  641. +++++ df -hP /home/shotgun
  642. +++++ grep -v Filesystem
  643. +++++ awk '{print $4}'
  644. ++++ availspace=76G
  645. +++++ du -sh /home/shotgun
  646. +++++ awk '{print $1}'
  647. ++++ rootdirdu=6.9G
  648. ++++ '[' -z 6.9G ']'
  649. +++++ du -sh /home/shotgun/serverfiles
  650. +++++ awk '{print $1}'
  651. ++++ filesdirdu=4.2G
  652. ++++ '[' -z 4.2G ']'
  653. +++++ du -sh --exclude=/home/shotgun/backups /home/shotgun/serverfiles
  654. +++++ awk '{print $1}'
  655. ++++ rootdirduexbackup=4.2G
  656. ++++ '[' -z 4.2G ']'
  657. ++++ '[' -d /home/shotgun/backups ']'
  658. +++++ du -sh /home/shotgun/backups
  659. +++++ awk '{print $1}'
  660. ++++ backupdirdu=2.5G
  661. ++++ '[' -z 2.5G ']'
  662. +++++ find /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
  663. +++++ wc -l
  664. ++++ backupcount=1
  665. +++++ ls -t /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
  666. +++++ head -1
  667. ++++ lastbackup=/home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
  668. +++++ date -r /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
  669. ++++ lastbackupdate='Fri Aug 26 06:41:06 PDT 2016'
  670. +++++ du -h /home/shotgun/backups/rust-server-2016-08-26-063550.tar.gz
  671. +++++ awk '{print $1}'
  672. ++++ lastbackupsize=2.5G
  673. ++++ date +%Y-%m-%d-%H%M%S
  674. +++ backupname=rust-server-2016-08-26-080731
  675. +++ fn_print_dots ''
  676. +++ '[' -n Backup ']'
  677. +++ echo -en '\r\033[K[ .... ] Backup rust-server: '
  678. +++ sleep 0.5
  679. +++ fn_print_info_nl 'A total of 4.2G will be compressed into the following backup:'
  680. +++ '[' -n Backup ']'
  681. +++ 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:'
  682. +++ sleep 0.5
  683. +++ echo -en '\n'
  684. +++ echo /home/shotgun/backups/rust-server-2016-08-26-080731.tar.gz
  685. +++ echo ''
  686. +++ true
  687. +++ read -e -i y -p 'Continue? [Y/N]' yn
  688. +++ case $yn in
  689. +++ break
  690. +++ echo ''
  691. +++ check_status.sh
  692. +++ functionfile=check_status.sh
  693. +++ fn_fetch_function
  694. +++ github_file_url_dir=lgsm/functions
  695. +++ github_file_url_name=check_status.sh
  696. +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh
  697. +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh
  698. +++ filedir=/home/shotgun/lgsm/functions
  699. +++ filename=check_status.sh
  700. +++ executecmd=executecmd
  701. +++ run=run
  702. +++ force=noforce
  703. +++ md5=nomd5
  704. +++ 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
  705. +++ fileurl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/check_status.sh
  706. +++ filedir=/home/shotgun/lgsm/functions
  707. +++ filename=check_status.sh
  708. +++ executecmd=executecmd
  709. +++ run=run
  710. +++ force=noforce
  711. +++ md5=nomd5
  712. +++ '[' '!' -f /home/shotgun/lgsm/functions/check_status.sh ']'
  713. +++ '[' -f /home/shotgun/lgsm/functions/check_status.sh ']'
  714. +++ fn_dl_md5
  715. +++ '[' nomd5 '!=' 0 ']'
  716. +++ '[' nomd5 '!=' nomd5 ']'
  717. +++ '[' run == run ']'
  718. +++ source /home/shotgun/lgsm/functions/check_status.sh
  719. ++++ local commandname=CHECK
  720. ++++++ readlink -f /home/shotgun/lgsm/functions/check_status.sh
  721. +++++ basename /home/shotgun/lgsm/functions/check_status.sh
  722. ++++ local function_selfname=check_status.sh
  723. ++++ '[' Rust == 'Teamspeak 3' ']'
  724. +++++ tmux list-sessions
  725. +++++ awk '{print $1}'
  726. +++++ grep -Ec '^rust-server:'
  727. ++++ status=0
  728. +++ '[' 0 '!=' 0 ']'
  729. +++ fn_print_dots 'Backup in progress, please wait...'
  730. +++ '[' -n Backup ']'
  731. +++ echo -en '\r\033[K[ .... ] Backup rust-server: Backup in progress, please wait...'
  732. +++ fn_script_log_info 'Started backup'
  733. +++ '[' -n BACKUP ']'
  734. ++++ date '+%b %d %H:%M:%S'
  735. +++ echo -e 'Aug 26 08:07:33 rust-server: BACKUP: INFO: Started backup'
  736. +++ sleep 2
  737. +++ '[' '!' -d /home/shotgun/backups ']'
  738. +++ 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
  739. +++ '[' 0 '!=' 0 ']'
  740. +++ fn_print_error_nl 'Backup failed: rust-server-2016-08-26-080731.tar.gz'
  741. +++ '[' -n Backup ']'
  742. +++ echo -en '\r\033[K[\e[31mERROR \e[0m] Backup rust-server: Backup failed: rust-server-2016-08-26-080731.tar.gz'
  743. +++ sleep 0.5
  744. +++ echo -en '\n'
  745. +++ fn_script_log_error 'Backup failed: rust-server-2016-08-26-080731.tar.gz'
  746. +++ '[' -n BACKUP ']'
  747. ++++ date '+%b %d %H:%M:%S'
  748. +++ echo -e 'Aug 26 08:12:31 rust-server: BACKUP: ERROR: Backup failed: rust-server-2016-08-26-080731.tar.gz'
  749. +++ exitcode=2
  750. +++ sleep 1
  751. +++ echo ''
  752. +++ core_exit.sh
  753. +++ functionfile=core_exit.sh
  754. +++ fn_fetch_core_dl
  755. +++ github_file_url_dir=lgsm/functions
  756. +++ github_file_url_name=core_exit.sh
  757. +++ filedir=/home/shotgun/lgsm/functions
  758. +++ filename=core_exit.sh
  759. +++ githuburl=https://raw.githubusercontent.com/dgibbs64/linuxgsm/master/lgsm/functions/core_exit.sh
  760. +++ '[' '!' -f /home/shotgun/lgsm/functions/core_exit.sh ']'
  761. +++ source /home/shotgun/lgsm/functions/core_exit.sh
  762. ++++ '[' -n '' ']'
  763. ++++ '[' -n 2 ']'
  764. ++++ '[' 2 '!=' 0 ']'
  765. ++++ '[' 2 == 1 ']'
  766. ++++ '[' 2 == 2 ']'
  767. ++++ fn_script_log_error 'command_backup.sh exiting with code: 2'
  768. ++++ '[' -n BACKUP ']'
  769. +++++ date '+%b %d %H:%M:%S'
  770. ++++ echo -e 'Aug 26 08:12:32 rust-server: BACKUP: ERROR: command_backup.sh exiting with code: 2'
  771. ++++ exitcode=2
  772. ++++ fn_exit_dev_debug
  773. ++++ '[' -f /home/shotgun/.dev-debug ']'
  774. ++++ echo ''
  775. ++++ echo 'command_backup.sh exiting with code: 2'
  776. ++++ trap - INT
  777. ++++ exit 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement