Add log creation
This commit is contained in:
parent
9e4f94a12e
commit
53717048a9
1 changed files with 11 additions and 0 deletions
11
create-system-log.sh
Normal file
11
create-system-log.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
volume="data"
|
||||
sharename="mylogs"
|
||||
thepath="/$volume/$sharename"
|
||||
|
||||
if [ ! -d "$thepath" ]; then
|
||||
/usr/bin/rn_nml -a share:"$thepath"
|
||||
fi
|
||||
|
||||
/usr/bin/rnutil create_system_log -o "$thepath"/System_log-$(hostname)-$(date +%s).zip
|
Loading…
Add table
Add a link
Reference in a new issue