Hostgator shared hosting backup to AWS S3
Install s3cmd
command line tool.
- Copy
s3cmd-setup.sh
to the home folder via scp. sh ./s3cmd-setup.sh
Copy fullbackup.sh
and storebackup.sh
to the home folder via scp.
Setup cron jobs:
sh <full_path_to_fullbackup.sh> "<user>" "<pass>" "<email>" "<cpanel_url/prefix>"
sh <full_path_to_storebackup.sh> "s3_bucket/prefix"
Thanks so much for this great backup strategy especially being run on a popular shared hosting account (hostgator). I fed up trying to apply similar method before on my hostgator shared hosting account, but I failed.
Thanks again for this.
How can we change the backup destination to be a folder we want instead of "homedir"?
Thanks again.