Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jamesgreig's avatar

Scheduled Jobs: run multiple shell scripts one after the other?

Is there way to create a sequence of shell scripts [.sh] that run after each other?

Eg (1) backup images (2) backup db (3) copy both backups to S3

(Can't see how to do this if they are all triggered at the same interval, eg hourly)

0 likes
1 reply
burlresearch's avatar

Ya, for sure - this is what the super-handy Job Chaining is for.

Just create a Job, 1 for each of your scripts. Then Chain them together when you dispatch the first one. If the chain breaks then the rest of the sequence fails.

TaylorThoughtOfItAlready ™

Please or to participate in this conversation.