How to Run Multiple Profiles in One Click

Asked by jean-christophe manciot

Back in Time 1.0.34 in Ubuntu 14.04

Hello guys,

Great job!

I have defined multiple profiles; each of them runs perfectly on its own.
The idea is to be able to run all of them back to back with one click, is it possible?

Question information

Language:
English Edit question
Status:
Solved
For:
Back In Time Edit question
Assignee:
No assignee Edit question
Solved by:
Germar
Solved:
Last query:
Last reply:
Revision history for this message
Best Germar (germar) said :
#1

You can write a script which will call the snapshots serially:

#!/bin/bash
for i in 1 2 4 5
    do
    nice -n 19 ionice -c2 -n7 /usr/bin/backintime --profile-id $i --backup-job >/dev/null 2>&1
done

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#2

Thanks for your answer.
Another way is to schedule each backup at different time.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#3

Thanks Germar, that solved my question.

Revision history for this message
Andy Carver (6-andy-t) said :
#4

OK, Just to confirm, create a separate profile, schedule for a different time and it will just work?

Revision history for this message
Germar (germar) said :
#5

If you set up enough time between both profiles this will be okay. But if the first profile is running for a long time for what ever reason, the second might be blocked because there can only be one snapshot running at the same time.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#6

Won't the second one be postponed until the end of the first one?

Revision history for this message
Germar (germar) said :
#7

Oh, sorry I was wrong. I just had an other look into source. Only snapshots of the same profile are blocking. Different profiles can run in parallel. So it shouldn't be a problem if the first didn't finish while the second starts.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) said :
#8

Nice!

Revision history for this message
Andy Carver (6-andy-t) said :
#9

I am testing now. With a 4 hour window.