create-system-log/create-system-log.sh
2021-09-29 01:38:27 +00:00

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