How to make BIT wait until the end of a user-callback script before starting
I need to unmount, check some drives, remount them and fsarchive a large drive (inside "Backup-
Here is my current script:
#!/bin/bash
profile_id="$1"
profile_name="$2"
backintime_
backintime_
PATH=/usr/
case $backintime_status in
1) #Backup process begins
case $profile_name in
"Main profile")
gnome-terminal --window-
;;
*) #do this for all other profiles
esac
;;
2) #Backup process ends
;;
3) #A new snapshot was taken
;;
4) #There was an error
case $backintime_
1) #The application is not configured
2) #A "take snapshot" process is already running
3) #Can't find snapshots folder (is it on a removable drive ?)
4) #A snapshot for "now" already exist
esac
;;
5) ## backintime-qt4 (GUI) started ##
# Here you can put things that need to be done when launching the GUI
;;
6) ## backintime-qt4 (GUI) closed ##
# Here you can put things that need to be done when closing the GUI
;;
7) ## Mount drives ##
# Here you should place custom mount commands which will be called everytime
# the GUI or command line tool is started or the profile is switched in GUI
;;
8) ## Unmount the drives ##
# Here you should place unmount scripts for the drive you mounted in 7)
;;
esac
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: