KazuyaDarklight
Dabbler
- Joined
- May 8, 2019
- Messages
- 36
I know for many situations, its best to manipulate SMB shared files from a Windows machine, but I have an automated process I want to implemment so if I can do it via cron so its all self contained on the FreeNAS server I'd like to, rather than having a script running on another, otherwise unrelated server.
Once a week, we want to have a process run that checks a directory with project folders in it, if the contents of a project folder have not been modified in 6 months, the project folder is then moved to an archive dataset on another pool. Booth the projects directory and the archive are SMB shares, we'd like the folders/files to inherit the archive permissions when they are moved there.
Would we be ok doing this as a cronjob script, or do I need to set this up on a windows machine.
Once a week, we want to have a process run that checks a directory with project folders in it, if the contents of a project folder have not been modified in 6 months, the project folder is then moved to an archive dataset on another pool. Booth the projects directory and the archive are SMB shares, we'd like the folders/files to inherit the archive permissions when they are moved there.
Would we be ok doing this as a cronjob script, or do I need to set this up on a windows machine.