Solved

Require guidance for system admin on linux and backup related question

Posted on 2006-06-20
6
249 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Suggested Solutions

Title # Comments Views Activity
How to learn Linux? 10 61
Linux Desktop suggestion for Dell Inspiron 3043 13 38
centos commands 6 53
Upgrade BIOS / EUFI at Scale 4 35
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

773 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