LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Backup of complete linux system


Hi,

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.

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

Rep: Reputation: 1
Hi

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

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

example:

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

Thanks
venkat
 
1 members found this post helpful.
Old 02-05-2013, 07:36 AM   #3
jsaravana87
Member
 
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, 09:14 AM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,257
Blog Entries: 11

Rep: Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289Reputation: 2289
Quote:
Originally Posted by eprabhat08 View Post
Hi,

I am using Ubuntu 12.01.
you sure?

terminal >
Code:
lsb_release -drc
https://help.ubuntu.com/community/BackupYourSystem
 
Old 02-05-2013, 10:18 AM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,463

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065
Here's the script I use to back up my system at home
Code:
#!/bin/bash

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"
else
   /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)"
fi
"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-05-2013, 11:32 PM   #6
eprabhat08
LQ Newbie
 
Registered: Feb 2013
Location: Delhi
Posts: 2

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


Reply


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 11:47 AM
complete system backup Completely Clueless Linux - Software 7 04-03-2008 06:35 AM
Complete system backup Schreiberling Linux - General 16 09-03-2006 07:06 AM
Complete System Backup? surrealdumbo Linux - Software 6 05-28-2004 10:14 AM
Complete System Backup top111 Linux - Newbie 1 08-20-2001 06:31 AM


All times are GMT -5. The time now is 06:55 PM.

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