You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the camera is usually behind a NAT, it would be better to sync the contents of /mnt/alarm_record_dir/ to an external server. This way we can sync and clear the storage card without having to have physical access to the camera and remove the TF card.
It would be kicked off from a daemon-like shell script (( cd /; umask 0; setsid your_script.sh </dev/null &>/dev/null & ) &), and be intelligent about what files have already been synced.
Could use a text filelist to track it, or a simple key/value store like db.sh using hashed filenames and timestamp.
Would be good to have throttling of the bandwidth as well so we don't affect live viewing.
Running it on a schedule (like sleep 600) is fine, but wouldn't it be nice to use inotify?
And also some facility to notice when a sync has not been done recently.
The text was updated successfully, but these errors were encountered:
Since the camera is usually behind a NAT, it would be better to sync the contents of
/mnt/alarm_record_dir/
to an external server. This way we can sync and clear the storage card without having to have physical access to the camera and remove the TF card.It would be kicked off from a daemon-like shell script (
( cd /; umask 0; setsid your_script.sh </dev/null &>/dev/null & ) &
), and be intelligent about what files have already been synced.Could use a text filelist to track it, or a simple key/value store like db.sh using hashed filenames and timestamp.
Would be good to have throttling of the bandwidth as well so we don't affect live viewing.
Running it on a schedule (like
sleep 600
) is fine, but wouldn't it be nice to useinotify
?And also some facility to notice when a sync has not been done recently.
The text was updated successfully, but these errors were encountered: