LinuxQuestions.org
Help answer threads with 0 replies.
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 04-19-2017, 12:00 PM   #1
stephenmatthias
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Rep: Reputation: Disabled
Can I backup clone of my operating hard drive, on the same computer?


Can I backup clone of my operating hard drive, on the same computer? This is in case my operating hard drive crashes.
 
Old 04-19-2017, 12:08 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Quote:
Originally Posted by stephenmatthias View Post
Can I backup clone of my operating hard drive, on the same computer? This is in case my operating hard drive crashes.
Yes, you can. I would recommend however that you back it up to an external device in case your laptop gets stolen, gets destroyed completely etc.
 
4 members found this post helpful.
Old 04-19-2017, 12:09 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by stephenmatthias View Post
Can I backup clone of my operating hard drive, on the same computer? This is in case my operating hard drive crashes.
Your question is confusing...same COMPUTER, or same HARD DRIVE? If you have multiple hard drives in your system, backing up from one to the other will give you some protection, since odds are only one will fail at a time. If you have only one drive, it's pointless, since if it crashes, it takes your backups with it.

Backing up to external media is ALWAYS better.
 
4 members found this post helpful.
Old 04-19-2017, 12:17 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,015
Blog Entries: 13

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
Hi and welcome to LQ.

To add to hydrurga's and TB0ne's posts, I also recommend that you do not try to back up the OS portion while it is running.

If you intend to back up your user data then you can do this while you are operating, but not running any programs accessing your user data.

Based on your original question where you ask about cloning your operating hard drive. Yes, you can clone it, but you should not do this while it is operating. Therefore a Live boot media such as a DVD or Thumbstick are best to use to boot the system. Next you'll need a same sized, or larger hard drive than the one you intend to back up as the target. From there you can use the sudo command and the dd command. You'll have to understand which drive is the source and which drive is the target.

Some issues here, and why I'm not posting the command suggestion, are:
  1. The dd command using the sudo modifier is powerful and if you get it incorrect, you can destroy your existing hard drive, thus doing the exact opposite of your intentions
  2. This type of back up, which great, is also somewhat special. No arguments the result will be effective, but ensure that you'd know what to do if you ever needed to restore, otherwise why bother going through it unless you've also learned how to make use of the archive
These are just some thoughts in preparing, or deciding as to whether or not this back up choice is best for you.

An earlier question of mine asked about just your user data. This can be done just using a File Manager, or the cp command and the correct directory top level. However you need to evaluate if you wish to backup the entire system or just your user data.
 
3 members found this post helpful.
Old 04-19-2017, 12:50 PM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,000

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Quote:
Originally Posted by stephenmatthias View Post
Can I backup clone of my operating hard drive, on the same computer? This is in case my operating hard drive crashes.
Don't know if you have any cloning app in mind but, clonezilla is a good choice. You've got some very good advice from the posters above, who are all very knowledgeable people here.
 
3 members found this post helpful.
Old 04-19-2017, 02:04 PM   #6
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,536

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
I boot from a live version of linux, so that no hard disks are operating.
Then I mount the disks & clone one of them to an external disk - (actually I use rsync to copy the files and directories etc).
 
2 members found this post helpful.
Old 04-19-2017, 02:46 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,154

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
Hello and welcome to LQ.

Any backup is usually better than none. More backups are better than one and so on. Your backup plan should suite the value of your data. You may not need to backup the OS. Your unique data may be all that you would need.
 
1 members found this post helpful.
Old 04-27-2017, 07:08 AM   #8
stephenmatthias
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you to all who replied to my question.

Thank you to all who replied to my question. I will try Deja Dup for a while. I was concerned about preserving the system state as regards nVidia drivers and screen resolution and such.
 
Old 04-27-2017, 07:16 AM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,536

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You might find that a bit for bit clone onto a another disk would meet your requirements better.
 
Old 04-27-2017, 07:55 AM   #10
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176Reputation: 3176
Like others, I would suggest procuring a suitable backup tool and an external drive. Use a tool that is based on rsync technology so that it makes a secured file-by-file copy, avoiding temporary files and volatile files such as swap-files. It probably does not need to duplicate system files as you can re-create those.
 
Old 04-27-2017, 08:28 AM   #11
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,536

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
The OP is concerned about maintaining his current configuration - video drivers and screen resolution.
Which is why I suggested a full clone of everything.

The more usual methods use rsync applied to selected non-system files to give a file-level backup.

I use backup2l for my file-level backups to a local disk, followed by a periodic rsync to a NAS drive.
It's a command line tool - but uses cron to schedule daily backups, so its (almost) a set it and forget it program.
http://backup2l.sourceforge.net/
 
Old 04-27-2017, 08:34 AM   #12
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by rtmistler View Post
Hi and welcome to LQ.

To add to hydrurga's and TB0ne's posts, I also recommend that you do not try to back up the OS portion while it is running.

If you intend to back up your user data then you can do this while you are operating, but not running any programs accessing your user data.
It's possible, but you should use special software. Ideally, you'd start up from a different drive or at least partition before backing up your main disk/partition to a separate device.
 
Old 04-27-2017, 02:43 PM   #13
stephenmatthias
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
I will get the external hard drive tomorrow.

Thanks a lot everyone.
 
  


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
Different operating systems on two hard drives on one computer olderone Linux - Hardware 3 04-19-2011 12:31 PM
clone hard drive to smaller hard drive digity Linux - Newbie 8 01-11-2009 06:29 PM
Clone a dual booting IDE hard drive to a SATA hard drive namida12 Linux - Distributions 1 07-14-2008 10:01 AM
How to clone or backup Linux boot drive? RodWC Linux - General 8 11-13-2005 09:00 AM
Clone a hard drive twantrd Solaris / OpenSolaris 10 02-05-2005 02:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 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