Sauvik Biswas

Comics enthusiast, Musician, Programmer and Traveller

  • About
  • Travelogue
  • On Comics
  • Now
Comics enthusiast, Musician, Programmer and Traveller

Server Migration for my websites

Print This Post May 27, 2019 by Sauvik Biswas Leave a Comment

I have been using DigitalOcean for the last three years. I am pretty happy with their service. Of late, I found that my website takes a tad too long to load.

Reasons for migration

  • My old server ran Ubuntu 14.04 LTS. It is no longer supported by Canonical
  • The machine had only 0.5 GB of RAM (which might explain the slow response). DigitalOcean now provides 1 GB of RAM and an additional 5 GB of HDD space for the same price.
  • I wanted to setup a cost-effective backup system. I was using snapshots to keep a hibernated copy of the machine.
  • The server had a lot of test junk that occupied unnecessary space, which in turn got backed up and costed me money.

My backup system based on snapshots wasn’t that good either.

  • I created manual snapshots every now and then. At any given point of time, I had at least two snapshots to fall back on.
  • Since snapshots are billed by their size, I was paying couple of dollars on the snapshots alone
  • I would occasionally do a mysqldump of the databases to sql files.

Current configuration and backup mechanism

  • My current configuration is a 1 CPU-1 GB RAM-25 GB HDD virtual machine running Ubuntu 18.04.2 LTS. I am comfortable with LAMP on Ubuntu and saw no reason to change.
  • There is a snapshot of an initial configuration with all the websites running. In case the machine misbehaves, I can always re-instantiate the machine
  • I have bought a 10 GB block volume storage that is specifically dedicated to site backups.
  • A daily cronjob dumps a gzipped archive of my site directories—including the codebase—and their corresponding mysqldumps.
Smallest machine: 2016 vs 2019. This can host four low volume websites.
Two Songs for June
MW: Tezuka's darkest work
Posted in: Coding Tagged: Digital Ocean, VPS, Website

Search the Site

Subscribe to my blog

Or use these links for your reader: RSS / Atom

Recent Posts

  • A tryst with B+Trees: Part I March 14, 2024
  • Tintin chases a plot for the first time in The Broken Ear March 5, 2024
  • A naive implementation of file-based storage February 26, 2024
  • YetiDB: an academic exercise February 22, 2024
  • That one time we actually trekked to Goecha-La July 9, 2023
  • Tour de Self: From Udupi to Bangalore January 3, 2023
  • Twenty Twenty-One February 23, 2022
  • Day 16: Back to Guwahati December 20, 2020
  • Day 14-15: Bomdila December 19, 2020
  • Day 12-13: Villages around Dirang December 17, 2020
  • Day 11: Dirang Monastery and Mandala Top December 15, 2020
  • Day 10: Through Sela Pass to Dirang December 14, 2020

Tags

Anime Artwork Bande Dessinée Bangalore Batman Berlin Casterman cycling Dark Project Dehradun Delhi Dharamshala Europe Trip '19 Food Graphic novel Guwahati Hergé Himachal trip '15 Himachal trip '19 Hybrid mod '17 Juda ka Talab Kasol Kerala trip '15 Kodaikanal-Ooty Trip '16 Manali Mandi Manga Munich Music NaNoWriMo North-East trip '14 North-East trip '20 Ooty Poetry Prague python Reckong Peo Rishikesh Tabo Tawang Tintin Tour of Nilgiris '16 Trekking Uttarakhand trip '17 Vietnam trip '15

Copyright © 2025 Sauvik Biswas.

Lifestyle Hack WordPress Theme by Sauvik Biswas modding themehit.com