12 lines
241 B
Bash
12 lines
241 B
Bash
#!/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
|