To run it as a cron job (at 3:30am like you wanted), put
something in your crontab like the following (if the script
is in your top directory):
30 3 * * * /usr/local/bin/php /home/youraccount/fullbackup.php
To download the script to your workstation, click here
-> fullbackup.php
Name the script something like fullbackup.php and make sure
to set all of the configuration variables). Make sure when
you cut and paste it that the $data line remains one line
(the if statement is the beginning of the next line).
The script includes SSL support. Although not so important
if you run the script on the server you are generating the
backup (besides, I don't believe the PHP on the TCH servers
has SSL support compiled in)... the SSL support would be
quite important if you decide to run this script somewhere
else to connect to your TCH account.
|