If you have a error like [ 92 : unexpected error ]. The problem maybe comes from Dash. In debian /bin/sh is a symlink to /bin/dash, however we need /bin/bash, not /bin/dash. But if you have ISPconfig on your server you have reconfigure Dash.( If you don't do this, the ISPConfig installation fail).
If you have a error run this command in shell
#bash -x your_script
If it's works run this command in shell
#dpkg-reconfigure dash
Use dash as the default system shell (/bin/sh)? <-- No
A other solution is to change in the script the first line #!/bin/sh to #!/bin/bash
If you would like to test the script now ( all backups) at 21:25 and not at 21H you can change this line
./wdbackup.sh: line 228: -u: command not found
./wdbackup.sh: line 228: -u: command not found
./wdbackup.sh: line 228: -u: command not found
./wdbackup.sh: line 228: -u: command not found
./wdbackup.sh: line 228: -u: command not found
I've downloaded the wdbackup.sh but theres no line 228, it goes up to line 125?
In the other 2 scripts there's no -u present on the mentioned line, did you make zome modifications yourself?
Ronald
Last edited by ncoc.nl; 20th December 2011 at 23:31.
Recent comments
19 hours 24 min ago
1 day 23 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
2 days 1 hour ago
2 days 2 hours ago