Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-05-2013, 02:20 AM   #1
LQ Newbie
Registered: Feb 2013
Location: Delhi
Posts: 2

Rep: Reputation: Disabled
Backup of complete linux system


I am using Ubuntu 12.01. I want to create Complete System Backup with data stored in /opt/lampp/.

Please help me to solve the problem.

Old 02-05-2013, 02:34 AM   #2
LQ Newbie
Registered: Mar 2011
Posts: 4
Blog Entries: 2

Rep: Reputation: 1

you can use this command to take the back up all the devices

dd if=/dev/DEVICE_TO_BACKUP of=/mnt/DEVICE/filename


dd if=/dev/sda1 of=/mnt/external_drive
dd if=/dev/sda2 of=/mnt/external_drive
dd if=/dev/sda3 of=/mnt/external_drive

1 members found this post helpful.
Old 02-05-2013, 08:36 AM   #3
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
You can use rsync to sync the data to any external storage medium

rsync Incremental backup

rsync --zavi root@serverip:/opt/lampp /destination mountpoint
Old 02-05-2013, 10:14 AM   #4
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

Rep: Reputation: Disabled
Originally Posted by eprabhat08 View Post

I am using Ubuntu 12.01.
you sure?

terminal >
lsb_release -drc
Old 02-05-2013, 11:18 AM   #5
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Here's the script I use to back up my system at home

if [[ ! -e /home/verify ]]; then
   echo "raid not found, skipping backup"
elif [[ ! -e /media/backups/home/verify ]]; then
   echo "backup drive not found, skipping backup"
   /usr/bin/rsync -aAXv --progress --delete /* /media/backups/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/.gvfs,/var/lib/ntp/proc/*}
   echo ""
   echo ""
   echo "Backup finished $(date)"
"verify" is just an empty file placed in a certain location on the drive. Checking for its existence is an easy way to ensure the drive is currently mounted and accessible in the expected location. Since my /home is located on a separate drive from the rest of the system, the first check is important since if the raid isn't mounted at /home for some reason, the --delete flag in rsync would wipe out the backup of everything on the raid. The second check is important because you don't want to back up the system to the location where the backup drive SHOULD be mounted, if it's not actually mounted there.

I run this backup nightly around 4am. Since it's an incremental backup, it only takes ~8 minutes to comb through the full 2.2 TB of data on the machine and sync the changes to the external drive.
1 members found this post helpful.
Old 02-06-2013, 12:32 AM   #6
LQ Newbie
Registered: Feb 2013
Location: Delhi
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks to all. It is very help for me!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Complete System Backup ssvirdi Ubuntu 7 04-13-2009 12:47 PM
complete system backup Completely Clueless Linux - Software 7 04-03-2008 07:35 AM
Complete system backup Schreiberling Linux - General 16 09-03-2006 08:06 AM
Complete System Backup? surrealdumbo Linux - Software 6 05-28-2004 11:14 AM
Complete System Backup top111 Linux - Newbie 1 08-20-2001 07:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration