Lets learn "How to backup your own linux system image"

 


How To Backup Your Own Linux System Image


Many a times it happens that while Tweaking your setting in ubuntu, it get hammered and crashes frequently. Many a times, your Ubuntu may not even Boot properly, even if safe mode setting are triggered. Things can be somehow recovered by use of some Backup measures which has proved to be helpful, who have been in developing field. Then Follows some basic Tweaks in ubuntu.

In this Tutorial, backup methods discussed are:
  • Creating a Restore Point (local Storage)
  • Creating a System Image(Portable)

Method 1:Creating Restore Point

The Simplest option right now is creating a restore point which can be customised according to need.
For example, A restore may target particular setting only and rest can be discarded. My choice is using an open source software "Timeshift".


Installation

Assuming you are using Ubuntu System, 
sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install timeshift
Installers for other Linux distributions are available at following links:

Usage 

Select Create system Backup. If you want to maintan some setting or some folder go for custom backup. This can be found on settings menu. At the time of creation of this article, timeshift version 17.1 was used.

Answering:Why Timeshift...

Because Timeshift comes with some simple and handy Command line interface which can be triggered from terminal. This can help if System's Unity setting are disturbed and all you can see is black terminal screen.
  • sudo timeshift --version
  • sudo timeshift --list
  • sudo timeshift --restore #interactive 
  • sudo timeshift --restore --snapshot "2015-01-21_19-28-43" --backup-device /dev/sda2 --target-device /dev/sda1 --skip-grub 
  • sudo timeshift --delete #interactive timeshift --delete --snapshot "2015-01-21_19-28-43" 
  • timeshift --delete-all #completely remove all snapshots



Method 2: Creating an ISO image of Your Sytem

This method is no different from previous but helps to create a portable image of your Operating System with all your settings and all your preferences. My choice for this is a simpler soft called "RESPIN"

Installation

Adding Repositories:
 sudo add-apt-repository ppa:sergiomejia666/respin
 sudo add-apt-repository ppa:sergiomejia666/xresprobe 
Updating the configs:
 sudo apt update
Installation:
 sudo apt-get install xresprobe respin isolinux
To create a restore Point here we just simply run:
sudo respin backup ubuntu_custom.iso  #your choice of name in place of ubuntu_custom
This ISO can be ported(Take care of machine architecture as not all settings are portable) to another system and will retain all the installations you did. Also if you are developing memory modules in Ubuntu its better to keep an ISO version of your settings because Ubuntu gets Highly garbled in these developments

With these settings now we can go for tweaking various parts of Linux.

Comments

Popular posts from this blog

Lets learn "About kube proxy in iptables mode"

Lets learn "System design for paste bin (or any text sharing website)"

Lets learn "What is CDN?"