im just posting this here so i dont forget in the morning
1. Paste the following into a text file and save it as test.php, then upload and run in browser (
http://us2.php.net/manual/en/function.shell-exec.php)
$output";
?>
It will test whether we can run linux commands from php. for example the above will output on my 1and1 business hosting account (which doesn't have ssh therefore no sFTP) the list of files in the current (public_html - where test.php resides) directory.
2. If that works, the next step is to look for some package (not sure what it is yet, mcrypt outputs nothing while openssl outputs something, which is a bonus). I found the following at
http://kerneltrap.org/node/2737
ENCRYPTION:
tar -zcvf - stuff|openssl des3 -salt -k secretpassword | dd of=stuff.des3
This will create stuff.des3...don't forget the password you put in place of secretpassword.
dd if=stuff.des3 |openssl des3 -d -k secretpassword|tar zxf -
Ok above there is a "-" at the end... this will extract everything.
The above works on my gutsy gibbon setup at home. havent had the time to try yet on 1and1.
Once all the above works, create a script to be run from the cli so it can be cron'd.
Things to do:
Work out what tools are available for encryption on my hosting e.g. 1and1
Work out the command to encrypt tar archives with the tools available on my hosting package
create the script to do the above