DIY Surveillance Camera Recording
my crontab: # start recording on boot @reboot sleep 10; /usr/local/bin/startrecord.sh &> /dev/null # restart every 10 minutes to create a new file */10 * * * * killall ffmpeg ; sleep 5 ; /usr/local/bin/startrecord.sh &> /dev/null # purge old recordings 0 */6 * * * find /data/office-kamera -type f -mtime +12 -delete /usr/local/bin/startrecord.sh #!/bin/bash […]