Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-28-2010, 06:03 PM   #1
Registered: Nov 2010
Location: US
Distribution: Ubuntu 12.04
Posts: 49

Rep: Reputation: 0
Question Deleted /usr/lib by accident

I accidentally deleted /usr/lib , by trying to delete a file from that directory, i didnt notice there was a blank space before the file i wanted to delete , so i had to reinstall fedora 14 again but it's ok because i just installed fedora yesterday.

The question is if i can just make a backup of the whole directory /usr/lib , and other important directories and if something goes wrong , can i just copy and paste to their respective directories ? will that restore system stability or will it crash because of time stamps or anything like that.
Attached Thumbnails
Click image for larger version

Name:	Linux-chicken.jpg
Views:	10
Size:	14.8 KB
ID:	5677  

Last edited by molossus; 12-28-2010 at 06:05 PM.
Old 12-28-2010, 06:23 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
It should be OK up to the time of your backup, provided you backup what is needed. You can run "rpm -qaV" to validate your packages after restoring to see if any are missing anything. I'd recommend two separate backups. One for /home. And the other for the rest of the system. Some directories such as /proc, /sys & /dev you don't want to backup. Others like /tmp, /var/tmp, /var/run you don't need to back up.

Look at the info manual for the `tar' command. Section 5.2 explains performing incremental dumps. This would allow you to perform a full backup after installing, and later only backup altered or new files. Using tar to create a backup archive, you will also be backing up the timestamps and permissions.

I just realized something. You may also need to do something for selinux after restoring files.

The Linux Filesystem Hierarchy Standard may also help you identify which directories to backup.

Last edited by jschiwal; 12-28-2010 at 06:33 PM.
1 members found this post helpful.


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
/usr/lib/pkgconfig content accidentally deleted pataprout Gentoo 3 11-07-2010 03:52 PM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
Just deleted /usr/lib/pkgconfig by accident. Hunter2 Slackware 3 06-25-2006 07:15 PM
Oopsy daisy - deleted /usr/lib/perl5/site_perl/ AcidRip no worky WoofDeF Linux - Software 1 03-30-2006 06:00 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:43 PM.

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