nsd3: copy and truncate log file when rotating