Tony Self
Contributor
- Joined
- Jan 30, 2017
- Messages
- 130
Hi, I am still pretty new to FreeNAS and there are things i don't fully understand yet so I would appreciate some guidance from our more experienced users.
I have recently created a jail for RClone so I can begin to sync my media library with my Google Drive. I found some instructions in the forum and successfully created the jail.
My experience with RClone itself is pretty limited as well, but by testing on one of my smallest media folders I have managed to start syncing the folder. I started testing on the command line within the jail, but ultimately I want to create a series of Cron jobs I can execute even when I am remote to my server.
As far as I understand to run a Cron job in a jail I need to prefix the command line with "jexec n", where n is the number of the jail. I have tested this from the shell adding in the -v verbose option and have successfully synced over 200 files now.
I have now created a Cron job running as root to execute the following command
"jexec 2 rclone sync --exclude-from /root/exclude-list.txt /media/miniseries gdrive:plex/mini"
I have the cron job currently disabled so I can just run it by clicking on the "Run Now" button.
Having kicked off the job, how can I tell whether the job is successfully running? Is there anyway to get feedback that the command is doing it's job?
Regards
Tony Self
I have recently created a jail for RClone so I can begin to sync my media library with my Google Drive. I found some instructions in the forum and successfully created the jail.
My experience with RClone itself is pretty limited as well, but by testing on one of my smallest media folders I have managed to start syncing the folder. I started testing on the command line within the jail, but ultimately I want to create a series of Cron jobs I can execute even when I am remote to my server.
As far as I understand to run a Cron job in a jail I need to prefix the command line with "jexec n", where n is the number of the jail. I have tested this from the shell adding in the -v verbose option and have successfully synced over 200 files now.
I have now created a Cron job running as root to execute the following command
"jexec 2 rclone sync --exclude-from /root/exclude-list.txt /media/miniseries gdrive:plex/mini"
I have the cron job currently disabled so I can just run it by clicking on the "Run Now" button.
Having kicked off the job, how can I tell whether the job is successfully running? Is there anyway to get feedback that the command is doing it's job?
Regards
Tony Self