diskdiddler
Wizard
- Joined
- Jul 9, 2014
- Messages
- 2,377
I've used cron before, to run jobs.
I know to set my files executable and I know the file works if ran from a shell prompt.
I've tried with and without standard error and standard output enabled.
I've moved the script from a path to a different location where another script used to run fine.
I've edited the script to just 'touch blahlbah.txt' and still, I can not get this script to run.
Script simply contains some rsync jobs.
cd /mnt/SSD1/
rsync -r --delete -v --progress --update /mnt/ARRAY/data/backup /mnt/HDD2-BKUP/ARRAY-DATA/backup
rsync -r --delete -v --progress --update /mnt/ARRAY/data/Scan /mnt/HDD2-BKUP/ARRAY-DATA/Scan
rsync -r --delete -v --progress --update /mnt/ARRAY/data/Photos /mnt/HDD2-BKUP/ARRAY-DATA/Photos
touch test.txt
I even know, that the exact rsync commands will run, as themselves in a cron job, I just don't want to add more cron jobs per path, rather just have 1 cron job perform a batch of copies.
What on earth could I be doing wrong? I tried changing ownership of the script file too.
I know to set my files executable and I know the file works if ran from a shell prompt.
I've tried with and without standard error and standard output enabled.
I've moved the script from a path to a different location where another script used to run fine.
I've edited the script to just 'touch blahlbah.txt' and still, I can not get this script to run.
Script simply contains some rsync jobs.
cd /mnt/SSD1/
rsync -r --delete -v --progress --update /mnt/ARRAY/data/backup /mnt/HDD2-BKUP/ARRAY-DATA/backup
rsync -r --delete -v --progress --update /mnt/ARRAY/data/Scan /mnt/HDD2-BKUP/ARRAY-DATA/Scan
rsync -r --delete -v --progress --update /mnt/ARRAY/data/Photos /mnt/HDD2-BKUP/ARRAY-DATA/Photos
touch test.txt
I even know, that the exact rsync commands will run, as themselves in a cron job, I just don't want to add more cron jobs per path, rather just have 1 cron job perform a batch of copies.
What on earth could I be doing wrong? I tried changing ownership of the script file too.