Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19th November 2008, 03:12 PM
kevaljd Offline
Registered User
 
Join Date: Jul 2008
Location: London
Posts: 77
Lightbulb How to backup at worst state?

Hello Friends,

Last night I was working on my ubuntu server and suddenly it just crashed with multicoloured bars on the screen, automatically it logged me out and I lost my database indexes

I tried to mount my harddisk on my pendrive which has DSL installed in it didn't work

I rebooted my system and grub started acting weird, so I was left with no choice but give up my GUI.
Here is where the fun began at night 3
If your system does not boot and there is no hope of restore you have to convince yourself to take back up of the data, databases, etc. and go ahead with re-installation of the entire machine.

Here is How you manage grub when it acts weird (I cannot explain 'weird' here, pardon me)

Quote:
1. Hit 'e' on your keyboard as soon as you see grub loading
2. select the kernel.
3. Hit 'e'
4. select the line starting with the word 'kernel'
5. Hit 'e'
6. type the word "Single" (without quotes) at the end of the line and hit enter.
7. Hit 'b'
hitting 'e' is to edit.

You are now logged in as root in your machine, you can even retrieve your password by typing 'passwd', if you have forgotten it!

Quote:
type:

# fdisk -l
and mount your main partition.

I recommend all of you to have pendrives you, one with DSL installed in it and the other for backup. You may require them at the time of emergency.

now mount your pendrives on the local folder for easy access.

Code:
# mount /path/to/usbstick /path/to/localfolder
# path to usbstick can be "/dev/sdb" or "/dev/sdc" etc.


If you use MySql and haven't created back up, do it now by:

Code:
# mysqldump -u "username" -p"password" "database_name" > FILE.sql
Sometimes, our data is large and space is less, in that condition you want to prefer compressing your folders before transferring them to back up drive.

Code:
# tar -cvf filename.tar folder/to/compress
# tar -czvf filename.tgz folder/to/compress
Note: tgz = tar.gz. tar - archieves the folder into one file and then gzip compresses it. simple?

use copy command to transfer your files
which will be somewhat like this:

Code:
# cp -rv /your/dirs/files/to/backup /your/mounted/local/folder
then, IMPORTANT:

Code:
# umount /path/to/usb/stick
Note: Don't forget to unmount your pendrive before you remove it!
__________________
Keval Domadia

Suspense behind each distro is:
................ tell you later!

Last edited by kevaljd; 19th November 2008 at 03:17 PM.
Reply With Quote
Reply

Tags
backup, emergency, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The WORST Game EVER pete_1967 Wibble 15 8th July 2008 08:19 AM
System state backup suneesh Using Fedora 2 26th June 2008 08:14 AM
Fedora 9 the worst yet? gmchenry Using Fedora 1 27th May 2008 08:19 AM
FTP - what's the worst that can happen? Chris NS Security and Privacy 3 2nd September 2006 02:26 PM


Current GMT-time: 12:17 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Brateyevo Photos on Instagram - Al Marsa Photos - Ciudad Choluteca Travel Photos on Instagram