user.callback error
I created my user.callback like this but it's not working, it keeps saying the folder cannot be found, I don't know why, so I would really appreciate your help:
!/bin/sh
report ()
{
case $1 in
1) echo "Application is not configured" > /home/$
#Take snapshot process is already running
2) echo "Take snapshot process is already running" > /home/$
#Can’t find snapshots directory
3) echo "Can’t find snapshots directory" > /home/$
#Snapshot for Now already exist
4) echo "Snapshot for “now” already exist" > /home/$
esac
}
proceed()
{
case $1 in
#Backup process begins.
1) mkdir "/media/DriveName/"
mount -t ext4 /dev/sdb1 "/media/DriveName/" ;;
#Backup process ends
2) sync
umount "/media/DriveName/"
rmdir "/media/DriveName/" ;;
#There was an error
4) report $2
;;
esac
}
case $2 in
#Profile Name
BackupName)
;;
esac
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- avlas
- Solved:
- Last query:
- Last reply: