LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-20-2012, 10:35 AM   #1
Gianni Valenti
LQ Newbie
 
Registered: Oct 2004
Location: Pisa - Italy
Distribution: Debian
Posts: 6

Rep: Reputation: 0
How to make an online backup of my system disk


Hi all,
I have a noob question and I hope you may help me.

I have a debian file server and I have no monitor or keyboard I can use to access the machine. I only log in via ssh from my laptop.

Now, what I would like to do is making a backup of the system disk (about 16 Gb).

First question:
considering that my system boots from sda, do you think I could simply switch to runlevel 1 and do "dd if=/dev/sda | gzip [...]" and have a correct backup?
Otherwise I could use dd to backup only MBR and then tar to backup "/", but I'd prefer the first option.
However, I think switching to runlevel 1 could be useful to prevent too many writes on disk during the backup. What do you think?

Second question:
since the ssh server is down at runlevel 1, I was thinking I could use a serial link to control the machine from my laptop. Do you think it's possible to have a serial console running at runlevel 1?
Would it be correct if I add "T0:123:respawn:/sbin/getty -L ttyS0 115200 vt100" to /etc/inittab?

Thank you very much for your help.

Bye,
Gianni
 
Old 02-20-2012, 11:11 AM   #2
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
If you are doing this, take care to come back from "init 3". You do not want "init 1".

And I think all of this isn't necessary at all.
You should be able to read with "dd" without any change of system parameters.

And yes, you can add a serial console. But test this before you try.
 
Old 02-20-2012, 11:37 AM   #3
Gianni Valenti
LQ Newbie
 
Registered: Oct 2004
Location: Pisa - Italy
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by uhelp View Post
And I think all of this isn't necessary at all.
You should be able to read with "dd" without any change of system parameters.
Hi uhelp,
I've red bad warnings about dumping a disk while mounted.

Read this comment for instance: http://www.backuphowto.info/comment/422#comment-422.

Bye (and thanks for your reply),
Gianni
 
  


Reply

Tags
backup, console, dd, runlevel, serial


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
Full System Backup of Linux from ext to NTFS disk ice21 Linux - Newbie 3 10-11-2010 03:54 PM
how to make backup and restore for fedora 12 file system xxmasrawy Linux - Newbie 4 04-20-2010 08:10 AM
Wondering how to make a full system backup...? Scotty1982 Suse/Novell 2 07-02-2007 10:29 PM
Using tar, to make differential Backup on Hard Disk alpha97 Linux - Newbie 3 05-14-2007 04:24 PM
Using rsnapshot to make a system backup Transition Slackware 1 03-21-2005 09:23 PM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration