Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer. You can expect quick tips, links to interesting tutorials, opinions and packages. Want to learn the cool stuff? Then sign up now!

Use BackupPC to create daily backups

My current hosting provider, DigitalOcean, has a great backup service. It takes frequent snapshots of entire droplets and it’s very easy to restore the snapshot quickly.

Unfortunately backups are only taken once every week. For our clients this is not acceptable. If you only rely solely on the DO backup service, you could potentially lose several days of work.

That’s why I use BackupPC to make daily backups of all Droplets. Every night BackupPC copies all important files via SSH to a big Amazon disk. An added bonus is that, unlike restoring droplets, you can restore a single file and browse all your backups.

Here is a good guide on how to install BackupPC on Ubuntu.

Freek Van der Herten is a partner and developer at Spatie, an Antwerp based company that specializes in creating web apps with Laravel. After hours he writes about modern PHP and Laravel on this blog. When not coding he’s probably rehearsing with his kraut rock band. He loves waffles and butterflies.
  • Samuel De Backer

    Thanks. FYI, the link to a good guide is incorrect.