Cron?

Language, region, time zone, power, navigation, notification and more.
Locked
User avatar
V8Triker
Posts: 82
Joined: 26 Feb 2021, 19:18
Great Britain

Cron?

Post by V8Triker »

I have had a search, and oddly this question never seems to have been asked.
Is there anyway to configure a Cron job?

Whilst I am running a RAID 5 set up, that then backs up to a RAID1 Volume (5 disks in total), I then want to back up to a NAS outside of the building.
Rsync is available, but Cron does not seen to be.

Any suggestions?

Many thanks in advance.
Bikers know why dogs stick their head out the window.

TNAS F5-221
TOS 4.2.39-2203011626
3X WD RED PLUS 3TB (RAID5)
2X WD Green 2TB (RAID1)
1X WD 4TB USB
User avatar
TMRyan
TerraMaster Team
Posts: 825
Joined: 01 Dec 2020, 11:50
China

Re: Cron?

Post by TMRyan »

Hi,
May I ask why you want to use Cron jobs? Rsync can already implement scheduled backups.
I am not sure if my answer is what you want.
You can put the backup task script into a certain directory, log in the TNAS with SSH, and then use the command "crontab -e" to add tasks, but once you restart the device, this scheduled task will be invalid.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com (for technical support)
Service team: service(at)terra-master.com (for purchasing, return, replacement)
User avatar
V8Triker
Posts: 82
Joined: 26 Feb 2021, 19:18
Great Britain

Re: Cron?

Post by V8Triker »

I thought the TNAS Rsync is only good for backing up to an Rsync server.
The external NAS I will, back up to is very basic, there is nothing configurable, so I can not use the TNAS Rsync app.

I have just tested, and crontab does get re-written on a power-cycle.

So, whilst Cron is available, it is pretty useless if all the jobs are just going to be lost on a reboot.
Bikers know why dogs stick their head out the window.

TNAS F5-221
TOS 4.2.39-2203011626
3X WD RED PLUS 3TB (RAID5)
2X WD Green 2TB (RAID1)
1X WD 4TB USB
User avatar
outkastm
Posts: 1191
Joined: 29 Dec 2020, 23:52

Re: Cron?

Post by outkastm »

Cron is available here as 3rd party modulel. Jobs are persistent after reboot and jobs can be added via module webui
viewtopic.php?f=37&t=1821
User avatar
V8Triker
Posts: 82
Joined: 26 Feb 2021, 19:18
Great Britain

Re: Cron?

Post by V8Triker »

Thank you.
Will check it out.
Bikers know why dogs stick their head out the window.

TNAS F5-221
TOS 4.2.39-2203011626
3X WD RED PLUS 3TB (RAID5)
2X WD Green 2TB (RAID1)
1X WD 4TB USB
Locked

Return to “System Configuration”