I wanted to copy my web site and subwebs from Go Daddy to my local machine. My trusty old WS_FTP32 client kept disconnecting partway through the (large) download. I installed FileZilla, and while that got further, it ultimately disconnected as well.
I figured if I could compress the larger folders using gzip, I could just download a few compressed files. But this Go Daddy account doesn’t have shell access. How do I run gzip? With a Cron job!
1. Create a gzip_folders.sh file with this content:
tar -czf subweb1.tar.gz subweb1
echo ‘GZipped subweb1’>&2
tar -czf subweb2.tar.gz subweb2
echo ‘GZipped subweb2’>&2
tar -czf subweb3.tar.gz subweb3
echo ‘GZipped subweb3’>&2
The >&2 sends the echo output to stderr, which Go Daddy emails to the the address you specify on the Cron Manager.
2. Upload the file to your Go Daddy account.
3. Important: Change the file’s permissions to allow the file to be executed by the Group. I used 710, which FileZilla displays as follows:
4. In the Go Daddy Hosting Control Center, go to Content > Cron Manager and schedule a cron job to run gzip_folders.sh.
Once the job completes, you should get an email listing the subwebs that were gzipped, and you should see the .tar.gz files in the html folder of your web site.
5. Download those files to your local machine using FTP.
6. Disable the Cron job and delete the gzip_folders.sh file to prevent accidental or malicious execution.