I want to run a script to backup curtain files at startup using rsync.
My script works fine when run out of Dolphin /'Run In Console'.
The script also write date-time to a file before and after backing up.
When the script runs at start-up the before and after times are identical.
I used System Settings/Autostart/script file to run the file at start up.
Here is the script file:-
Any ideas welcome.
My script works fine when run out of Dolphin /'Run In Console'.
The script also write date-time to a file before and after backing up.
When the script runs at start-up the before and after times are identical.
I used System Settings/Autostart/script file to run the file at start up.
Here is the script file:-
Code:
#!/bin/bash # sleep for 30 seconds sleep 30 # start time d=$(date '+%d/%m/%Y %H:%M:%S') echo "Start $d" >> /home/bill/startup.txt echo "$d" rsync -av --delete /home/bill{/Documents,/GambasFolder} /media/bill/MUSIC/new # end time d=$(date '+%d/%m/%Y %H:%M:%S') echo "End $d" >> /home/bill/startup.txt echo "$d"
Comment