Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-12-2007, 11:01 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 20

Rep: Reputation: 0
Restoring from rsync backup

I backed up my disks the other day - thankfully as something went wrong today. Now I am trying to restore (part of) the backup.

This paragraph is optional: The something that went wrong is that my root partition (512Mb) got full some how, preventing me from finishing a downgrade that is necessary to get my X server working again (an upgrade was incompatible with my gpu). The problem is either that I installed a lot more stuff that I intended to on to /, or more likely, a weird situation that arose as a result of these installations, whereby I now have a couple of files occupying about half the partition. I cant remember their name exactly, but its somethting like /sys/devices/pci000/0000:000:01.1/resource1 ... or something. The thing is, these arent real files are they? And I cant mv or rm them (i/o error). Sigh. So Im stuck.

Anyways, I decided, after taking another backup of the now useless partition, that I would restore it from the / backup of two days ago. So I simply did rm -r * on the root partition and rsyncd the contents of the backup into place on the now empty partition (this was all done using a live cd).

I had hoped it would be that simple, but now I cant boot. I get a kernel panic (cant read the full message cos it powers off too quickly).

What can I do to restore my backup and get running again?

Old 09-12-2007, 11:28 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,606

Rep: Reputation: 225Reputation: 225Reputation: 225
A lot of questions here. Specifically, how did you do the original rsync backup? Did you do the backup as root? Did you backup to a native linux filesystem or FAT32? Did you do the backup from a livecd or from a running system? You say you are restoring "part" of your backup and get a kernel panic. Exactly which part are you attempting to restore?
Old 09-12-2007, 12:05 PM   #3
LQ Newbie
Registered: Dec 2006
Posts: 20

Original Poster
Rep: Reputation: 0
I used a live cd. I mounted my disks and the external disk and ran

# rsync -Sav --numeric-ids <src> <dest>

for each of my partitions. I did this as root. I attempted to restore by swapping src and dest.

All my partitions are reiserfs (except /boot which is ext3). I formatted my external disk as ext3.

When I say "part", I mean I am only trying to restore my 512Mb / partition (not /home, /user, /opt, etc.) ... I wonder if I damaged the link to /boot or something. Will look into that.
Old 09-12-2007, 01:13 PM   #4
LQ Newbie
Registered: Dec 2006
Posts: 20

Original Poster
Rep: Reputation: 0
I must have had an extra / or something. The restore out everything in a subfolder of /. Problem solved now. Sorry/Thanks.


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
Using RSync to backup a secondary off-site backup server pezdspencer Linux - Software 4 06-29-2007 03:40 PM
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM
Restoring from an rsync backup of / eldoran Linux - General 3 04-25-2006 11:34 PM
restoring /etc files from tar backup hdagelic Linux - General 1 09-24-2003 07:04 AM
Restoring backup dominique Linux - Newbie 3 12-06-2001 02:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 AM.

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