Solved

Require guidance for system admin on linux and backup related question

Posted on 2006-06-20
6
248 Views
Last Modified: 2013-12-16
Hi everybody
I am new user to Linux and having my datatase server as oracle 11i.I want to take the backup of usr,bin,lib,var,opt,etc(except dev ) directory which are located under the root.Before I was using windows.Now I want to copy these folders for backup.I want to copy these folders into one partition having enough space.I have a doubt that will copy these folders will make any harm to the server or not.Because in windows when we copy the system files it shows that can't copy the files is in use.Will it give similar error in linux?Or I should proceed?
                                      The other question is that if i want to install a driver which is not part of the kernel residual module but it is inside the /usr/src/linux2.4.21-9.0.1/kernel/net/8139too.o (I know this is a residual modul,but for instance just image that it is not part of the residual module).What should I do to make this module be inserted in the /lib/2.4.21-9.0.1.EL/kernel/driver/net
Please help me
hope for early reply
0
Comment
Question by:Prerak123
  • 5
6 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 150 total points
ID: 16940636
Simplest and easiest way to backup a folder is with copy (cp):

cp -R /usr /backup/partition

This recursively copies the directory usr into the backup partition.

man cp

for more info.

Of course we could use tar:

tar cvf /usr /backup/partition

Other utilities are available such as cpio et

man tar
man cpio

As a minor point if you are asking 2 questions - always put them in seperate questions - it makes things easier for those answering, and also means that you get a more 'focussed' answer.

To install a module, you need the command:

insmod usr/src/linux2.4.21-9.0.1/kernel/net/8139too.o

You can confirm that the module has been installed by typing:

lsmod

HTH:)
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16940657
usr,bin,lib,var,opt,etc

Of these var will be in use (log files), and you'll get a copy of the log file at the time the copy starts - These means that all the log files will not be a 'perfect' snapshot! Otherwise the copy should be fine for most needs. If you don't have permissions to read the files concerned, then yes you will get an error!
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16940671
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:Prerak123
ID: 16941822
Thanx
I will proceed the backup of folder as mentioned by you.It means copying folder is not harmful for me and will not say files is in use except the var folder.
I tried to install module
insmod /usr/src/linux-2.4.21-4.0.1-ELsmp/driver/net/8139too.c
8139too.c : 8139too.c is not an ELF file

what is ELF file
for your conviniency I increase 50 points
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17064607
An ELF(executable and linking format) file is a standard for executeable files:

http://www.gsp.com/cgi-bin/man.cgi?section=5&topic=elf

for the structure expected of an ELF file.

(   (()
(`-' _\
 ''  ''
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 17064615
>insmod /usr/src/linux-2.4.21-4.0.1-ELsmp/driver/net/8139too.c
>8139too.c : 8139too.c is not an ELF file

Partly my fault! If you compile the src (source code) you'll get an executable that will normally end in .o or .ko It is probably that you have not compiled your source from scratch.

Try looking in:

/lib

instead for the .o or .ko file. Otherwise you may need to compile the source.

(   (()
(`-' _\
 ''  ''
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now