depasseg
FreeNAS Replicant
- Joined
- Sep 16, 2014
- Messages
- 2,874
I have a webcam that uploads pictures every minute to a server. I would like to organize the pictures into folders. I've tried writing even a basic script and I suck. Is there anyone out there that can help me out?
I have thousands of pictures in /var/www/cam/archive/current/
Filenames are cam-yyyy-mm-dd-hhmm.jpg
I would like to create a cron job that I can run daily or weekly which would move whatever files are in that folder to /var/cam/archive/yyyy/mm/(same filename).jpg.
Anyone up for a challenge?
Thanks,
Greg
I have thousands of pictures in /var/www/cam/archive/current/
Filenames are cam-yyyy-mm-dd-hhmm.jpg
I would like to create a cron job that I can run daily or weekly which would move whatever files are in that folder to /var/cam/archive/yyyy/mm/(same filename).jpg.
Anyone up for a challenge?
Thanks,
Greg