motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

Question: Is it better to use FTP or to write directly to an attached Hard Drive?

Open jtmpush18 opened this issue 3 years ago • 1 comments

Question: The on/off button for "Upload Media Files" allows the user to use FTP to upload files to any FTP server (or Google, or Dropbox, or...).

However, the device I am using, an Odroid HC4 has on it a large HDD. Is it more efficient (i.e. less resources) to store the files directly, or should I use FTP? Will it make a difference to what is stored?

(Please excuse my basic lack of knowledge)....

jtmpush18 avatar Jan 19 '22 17:01 jtmpush18

Well, a direct write to a local drive is faster due to several issues: Not using a separate service to send data Network bandwidth needed to send data Resource usage on the network server etc. The faster the system can store the data, the quicker it can return to doing its primary job There can be times and non-optimized setups where it triggers for motion, completes the detection, starts writing the data, gets triggered again, now is still in the first write, but needs to write a second file, oh, oops, a 3rd detection and rapidly gets backed up. An option is to use a cron job, as a separate function, to hourly, 3 hours, 6 hours, 12 hours, daily, whatever, copy or move files to a NAS to save space locally (not part of motioneye). As to making a difference as to what is stored, jpg snapshots are tiny, mp4 movie files can be HUGE. The movie files are what I was referring to above... Any help?

starbasessd avatar Jan 19 '22 17:01 starbasessd