NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
nikdis
Feb 25, 2019Tutor
Organization of files
Hi at all,
I need to know if there is available an application, to install on NAS, able to reorganize a folder with thousands of pictures in subfolders by date/time.
Thanks for the support. ...
Sandshark
Feb 26, 2019Sensei - Experienced User
It can be done through some fairly complex SSH shell commands. You are going to be much better off mapping the drive on a PC and using software that runs there. As long as you are moving between folders, not shares, they can be moved rather than copied and deleted (the latter taking WAY longer). You may need to verify that the software you have chosen is doing that.
The Robocopy command from Windows is another option, but it can be a bit daunting. You don't want to mess up and delete your files.
- nikdisFeb 26, 2019Tutor
Thanks for your answer.
The problem is regarding video surveillance... The IP camera (FOSCAM) is able to save just in one folder on NAS, so I will have thousands of pictures. When I try to connect with windows explorer to the storage folder of the IP camera, the system is very slow to load the preview of the images. But the NAS is the only one "clever" system always switched ON.
Do you have some other suggestion how to avoid this kind of problem?
- StephenBFeb 26, 2019Guru - Experienced User
There's no automatic packages I'm aware of that will do this for you. Some folks use Blue Iris security software - it's possible that has some features that would keep things organized. But that would need to run on a PC.
Since this is an on-going process, you can simplify the needed script. For instance, create a new share for a foscam archive. Once a day the script creates a new dated folder in the archive share, and moves everything in foscam share into the dated folder. That won't organize what you have already, but it would keep things organized later on.
- SandsharkMar 01, 2019Sensei - Experienced User
A cron job set to run a script like the one below just before midnight would do it for newly created files after you clean up what you already have.
TODAY=`date +%F` mkdir /data/Camera/Archive/$TODAY mv /data/Camera/Active/* /data/Camera/Archive/$TODAY
That will create a directory named in the form YEAR-MONTH-DAY in the specified archive folder (which I called "/data/Camera/Archive") and then move all files in the normal destination directory (my /data/Camera/Active) to it. Of course, you have to use directory names that are valid on your system. And if there are other files that should not be moved, you'll need to be more selective than "*" as to files to move. Any file still being written to won't be moved.
But since you asked for an app, not a cron script, I suspect this is outside of your comfort zone.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!