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
TIME=$(date +"%HH")
to
TIME=$(date +"%H:%M")
you can change
TIMEWEBBU="21H"
TIMEISPBU1="21H"
TIMEISPBU2="18H"
to
TIMEWEBBU="21:25"
TIMEISPBU1="21:25"
TIMEISPBU2="18:23"
After just run at 21:25
#./your_script
to check if all backups work.
Last edited by versatile; 27th July 2011 at 23:55.
|