Bizarro252
Dabbler
- Joined
- Jul 1, 2019
- Messages
- 36
Hello!
Is there a resource/intro to writing scripts for FreeNAS?
I want to create something suuuuper basic, I want to have a script to copy the contents of a folder within a jail to a shared folder so I can pass the logs over easily over my network.
I tried mounting this folder but I cant create it while there are files in it, and removing the files to mount the folder caused issues...
So for example do the below, but not have to type it out every time I want to do it :)
cd /mnt/data_pool/iocage/jails/..../logs
cp * /mnt/data_pool/...shared folder
Thanks!
Is there a resource/intro to writing scripts for FreeNAS?
I want to create something suuuuper basic, I want to have a script to copy the contents of a folder within a jail to a shared folder so I can pass the logs over easily over my network.
I tried mounting this folder but I cant create it while there are files in it, and removing the files to mount the folder caused issues...
So for example do the below, but not have to type it out every time I want to do it :)
cd /mnt/data_pool/iocage/jails/..../logs
cp * /mnt/data_pool/...shared folder
Thanks!