update for new debug log
This commit is contained in:
parent
f722a115b1
commit
c4f88bdce7
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
SCRIPT_VERSION="14"
|
||||
SCRIPT_VERSION="15"
|
||||
SCRIPT_URL='https://raw.githubusercontent.com/wh1te909/tacticalrmm/master/backup.sh'
|
||||
|
||||
GREEN='\033[0;32m'
|
||||
|
@ -80,7 +80,7 @@ if [ -f "${sysd}/daphne.service" ]; then
|
|||
sudo cp ${sysd}/daphne.service ${tmp_dir}/systemd/
|
||||
fi
|
||||
|
||||
cat /rmm/api/tacticalrmm/tacticalrmm/private/log/debug.log | gzip -9 > ${tmp_dir}/rmm/debug.log.gz
|
||||
cat /rmm/api/tacticalrmm/tacticalrmm/private/log/django_debug.log | gzip -9 > ${tmp_dir}/rmm/debug.log.gz
|
||||
cp /rmm/api/tacticalrmm/tacticalrmm/local_settings.py /rmm/api/tacticalrmm/app.ini ${tmp_dir}/rmm/
|
||||
cp /rmm/web/.env ${tmp_dir}/rmm/env
|
||||
cp /rmm/api/tacticalrmm/tacticalrmm/private/exe/mesh*.exe ${tmp_dir}/rmm/
|
||||
|
|
|
@ -160,4 +160,4 @@ You can find 3 sets of detailed logs at `/rmm/api/tacticalrmm/tacticalrmm/privat
|
|||
|
||||
* `access.log` nginx log for access auditing on all URL's: rmm, api and mesh (_this is a large file, and should be cleaned periodically_)
|
||||
|
||||
* `debug.log` created by django webapp
|
||||
* `django_debug.log` created by django webapp
|
||||
|
|
|
@ -269,7 +269,7 @@ echo "${uwsgini}" > /rmm/api/tacticalrmm/app.ini
|
|||
cp $tmp_dir/rmm/local_settings.py /rmm/api/tacticalrmm/tacticalrmm/
|
||||
cp $tmp_dir/rmm/env /rmm/web/.env
|
||||
gzip -d $tmp_dir/rmm/debug.log.gz
|
||||
cp $tmp_dir/rmm/debug.log /rmm/api/tacticalrmm/tacticalrmm/private/log/
|
||||
cp $tmp_dir/rmm/django_debug.log /rmm/api/tacticalrmm/tacticalrmm/private/log/
|
||||
cp $tmp_dir/rmm/mesh*.exe /rmm/api/tacticalrmm/tacticalrmm/private/exe/
|
||||
|
||||
sudo cp /rmm/natsapi/bin/nats-api /usr/local/bin
|
||||
|
|
Loading…
Reference in New Issue