• 23
  • Dec

Website Backuporiginal image by Just Taken Pics

Lets face it, no one likes performing manual backups. Often if monotonous tasks are not automated in some way (which they should be, that is why computers were invented) they will be forgotten and not performed regularly.

By using Linux wget and cron, we can incrementally backup websites and write a log file for each day. This will save time and network traffic.

This post features the same method I use to backup Hackosis on a daily basis.

Next, cd ~ into your home directory, or the location were you will be putting the website backup. create a new text file — touch websitebackup.sh. If you are backing up multiple websites, you may wish to name the file specific to the website you are backing up to avoid confusion.

Now execute chmod u+x websitebackup.sh to give the file execute permissions.

Contents of websitebackup.sh. Replace italics respectively:
Read the rest of this entry …