create-system-log/create-system-log.sh

12 lines
241 B
Bash
Raw Normal View History

2021-09-28 18:38:27 -07:00
#!/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