I'm not sure if this is more appropriate here or over in Stackexchange so sorry if I got it wrong.
I was wondering if I could get some help: So I'm trying to use cron to run my shell script which consists of multiple duplicity calls (so I can back up different things without it all being jumbled together in a mess)
In my crontab
09 15 * * * /home/backup.sh
in my home/backup.sh
duplicity --no-encryption --exclude /home/itq/anotherOne /home/itq file:///media/backup/backup/tester/Ian
duplicity --no-encryption /media/ab file:///media/backup/backup/tester/ab
The problem that I'm getting is that
Command line error: Expected 2 args, got 1
Enter 'duplicity --help' for help screen.
/home/backup.sh: 2: /home/backup.sh: file:///media/backup/backup/tester/Ian: not found
Command line error: Expected 2 args, got 1
Enter 'duplicity --help' for help screen.
/home/backup.sh: 5: /home/backup.sh: file:///media/backup/backup/tester/ab: not found
even though it works just fine when I run it from terminal (outside of the script). It's probably worth noting that /media/backup is a harddrive that I've mounted to the system (it's called backup, and is the first backup file after media) so IDK if that changes anything.