Code: Select all
#!/bin/bash
gnome-terminal -x bash -c "rsync -avhu --info=progress2 --delete --exclude=".cache" '/home/taco/' '/mnt/sdb1 rsyncbackup/'"
notify-send "backup of Main home partition has begun" && '/home/taco/bashscripts/archived bashscripts not used often/notifysend.sh'
Also tried replacing && with & as well as ; and only one spacebar press between the " backup begun" message and " backup complete" separate script.
same results.
also tried
Code: Select all
#!/bin/bash
gnome-terminal -x bash -c "rsync -avhu --info=progress2 --delete --exclude=".cache" '/home/tpcs/' '/mnt/sdb1 rsyncbackup/'"
notify-send "backup of Main home partition has begun" && wait && sync && wait &&
'/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'
I even put the notify-send command into a separate text script file called notifysend.sh
Here's the most recent script that runs the backup script then the notifysend.sh script right after each other
Code: Select all
#!/bin/bash
'/home/taco/Mechanic/Backup home via Rsync to 4TB sdb1 ssd'
'/home/taco/bashscripts/archived bashscripts not used often/notifysend.sh'
Code: Select all
#!/bin/bash
'/home/tpcs/Mechanic/Backup home via Rsync to 4TB sdb1 ssd' &
'/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'
Code: Select all
#!/bin/bash
'/home/tpcs/Mechanic/Backup home via Rsync to 4TB sdb1 ssd' &&
'/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'
Code: Select all
#!/bin/bash
'/home/tpcs/Mechanic/Backup home via Rsync to 4TB sdb1 ssd'
&& '/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'
3. wait
Code: Select all
#!/bin/bash
'/home/tpcs/Mechanic/Backup home via Rsync to 4TB sdb1 ssd'
wait
'/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'
Code: Select all
#!/bin/bash
'/home/tpcs/Mechanic/Backup home via Rsync to 4TB sdb1 ssd' && wait &&
'/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'
Code: Select all
#!/bin/bash
'/home/tpcs/Mechanic/Backup home via Rsync to 4TB sdb1 ssd' && wait && sync &&
'/home/tpcs/bashscripts/archived bashscripts not used often/notifysend.sh'