General :: Restoring The Particular Directory From Tar?

Jun 18, 2010

I have performed the tar backup in my linuxbox by using the commandtar -cvpzf ring.tar.gz /m01/fordb/sqlThe ring.tar.gz is stored in /m01Now i need to restore the particular directory sql into the /m01/fordb/where i have deleted the sql directory

View 3 Replies


ADVERTISEMENT

OpenSUSE Install :: Restoring The Entire ETC Directory In Similar Hardware?

May 4, 2011

We are looking for a solution that allows us to restore a servers "identity" in the event of hardware failure...ie Name, IP address, dhcpd, named configs etc.

We have ISO images of the appliance images that contains all the software and stuff. There is no real data on these servers.

If we backup the entire ETC directory and perhaps the /var/lib can we simply restore that and get everything back?

What concerns me is how some versions of Suse use UUID for the network config and the mounts points.

View 9 Replies View Related

General :: Restoring /usr/bin/php File?

Sep 13, 2010

I've accidentally changed /usr/bin/php file on my server by running a cp command. I know this is bad, i just don't know how bad. Everything is working fine (websites using php), so i just wanted to know what this action could cause and also how can i restore original content

View 14 Replies View Related

General :: Error At Restoring Dumped Sql

Aug 17, 2010

error at restoring dumped sql

I have backuped sql by mysqldump on mysql version 5.1.41. But when I restore this sql by command "mysql -uroot --default-character-set=utf8" my-db < my-sql.sql" I've got this error message.

Quote:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'barunarum',1,1,1,1,1,1,1,1,1,1,3,3,-1,5,1,-20,0,'','script|iframe',0,0,0,0,0,0,0' at line 1

View 4 Replies View Related

General :: Restoring A Backup In A Different System?

Jan 21, 2010

im trying to clone my ubuntu system installed in a laptop in case the laptop crashes.

But, first of all: when i try to restore the system in a new PC, could be incompatibilities because the hardware of the broken laptop and the new laptop is different?

I dont mind if i have to buy another laptop with the same processor type (i386, etc), but, for example, the type of the RAM could be cause of problems?

View 7 Replies View Related

General :: Restoring RH4 Using AMANDA - Will It Restore OS

Jun 4, 2010

If I want to restore an full backup of AMANDA, will it restore the OS along with the files or does it just restore all the files in /

View 2 Replies View Related

General :: Restoring System Back?

Feb 16, 2010

can i do a complete system restore on a toshiba netbook with linux op system, as ive bought one with admin name and password still on it, and i dont know the password to use the admin side of the netbook?

View 10 Replies View Related

General :: Restoring Tape Contents?

Oct 14, 2010

on a Linux pc I want to restore the contents of the DLT tape to /mnt directory,how to do itIf I just want to see the contents of the files, is it possible to read the contents irectly from tape without restoring to hard disk?

View 4 Replies View Related

General :: Restoring Yum Repo In Fedora 7?

Feb 22, 2011

I mistakenly deleted the repo directory in the yum folder. Now my yum command does not work.i tried to rpmfusion but i couldnt find the rpm for fedora 7. How can i restore my repos. I didnt do any modifications. Only rpmfusion repo would do.

View 5 Replies View Related

General :: Restoring RedHat Enterprise Server X64 5.4?

Jul 11, 2011

at work place I have an HP ProLiant DL580 with RedHat Enterprise Server 5.4 x64. Today I cloned this machine using clonezilla. What I would like to do is restore the image to VMWare machine for personal purpose (I cannot perform tests on production machine). But after restoring on VMWare I got "Kernel Panic". That's normal due to different hardware.

Now, is there a way to remove the Kernel Panic and correctly boot the machine? I ask our tech department for the RedHat CD1 to enter the "linux rescue" enviromnent, then try to re-read the hardware list with

# chroot /mnt/sysimage
# kudzu

View 3 Replies View Related

General :: Restoring The Dumped Database In Mysql?

Oct 14, 2010

in my fedora machine i gave

mysqldump <database-name> > bakup.sql
in my solaris machine i gave
mysql <newly created dbname> < bakup.sql
it shows the below error

ERROR 1064 at line 25: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1' at line 7

mysql version in my fedora machine is
mysql Ver 14.14 Distrib 5.1.47
mysql version in my solaris machine is
mysql Ver 12.22 Distrib 4.0.24

View 4 Replies View Related

General :: Restoring A HDD Backup Image From The Ubuntu Live CD?

Feb 3, 2010

I want to restore a HDD image I have to my laptop's HDD while booted off the Ubuntu Live CD.The laptop's HDD is unformatted and has no partitions.I expected this to work:$ sudo dd if=/path/to/backup.img of=/dev/sdaBut I'm tolddd: opening `/dev/sda': Permission denied.

View 1 Replies View Related

General :: Restoring The Owners On Debian System Files?

Mar 20, 2010

Due to my inattention, tiredness (and probably stupidity) i've run "chown -R someuser:someuser /" and now all your base are belongs to us the files on the server belong to one user (lol).After system restart, apache, bind9, mysql, and adozen other applications don't start and fill their log files with permission errors.I haven't done any backups on system files, only on the db and website files.Please suggest some ways to revive my web server. I have only 2 month experience with linux,

View 1 Replies View Related

General :: Windows 7 - Bootmgr Missing After Restoring With Sysresccd

Jun 30, 2010

I backed up my laptop months ago. Today i repartition the drive and used sysresccd with partimage to restore the HDD. I got a success msg after restoring however when booting i get a bootmgr missing error. How do i fix this?

View 2 Replies View Related

General :: Restoring Partition Table - 'Testdisk' Not Working?

Jan 27, 2010

I was having trouble creating a USB Startup Disk in Ubuntu and used the command:

sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1

This was a mistake as my USB flash drive was on /dev/sdc. If I am understanding this correctly, the command above deleted the MBR and the partition table. This disk had a single "/storage" partition on it. I googled a solution and found that the "testdisk" program seems to be the most popular solution for things like this. I ran it, selected an "Intel/PC partition" type, set the partition to a non-bootable primary Linux partition, wrote it, and rebooted.

Whenever I run:

sudo mount -t ext3 /dev/sdb1 /storage

I get:

mount: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so

Dmesg shows the following:

[20246.273941] EXT3-fs error (device sdb1): ext3_check_descriptors: Block bitmap for group 1 not in group (block 0)!
[20246.279376] EXT3-fs: group descriptors corrupted!

When I run:

sudo fdisk -l /dev/sdb

I get:

Disk /dev/sdb: 400.1 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

[code]....

View 4 Replies View Related

General :: Openbox - Autostart.sh File Is Not Restoring Things

Jun 13, 2010

I've decided to give openbox a try with Debian testing. I set up my right-click menu exactly how I want it, and everything else is set up perfectly. I installed trayer and tint2, along with nitrogen. I added the following lines to my ~/.config/openbox/autostart.sh file, but things aren't loading/restoring as they should. Tint2 and trayer don't load at all, and nitrogen isn't restoring my wallpaper. All I get is a black screen with my cursor, but the ability to right-click and open the menu, so it's not like X is dead. I did set the default wallpaper by issuing the command nitrogen /home/john/Pictures/Wallpapers, where "Wallpapers" contains all of my background images.

Here is my autostart.sh file: Code: # Autostart file for openbox nitrogen --restore & sleep 2s && tint -c /home/john/.config/tint/.tintrc) & (sleep 2s && trayer --expand true --transparent true --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request --margin 130) & I do have proper content in the .tintrc file located in /home/john/.config/tint/tintrc. Am I doing something wrong here?

View 4 Replies View Related

General :: Restoring A Clonezilla Image To Larger Partition?

Jan 2, 2010

I'm trying to restore an image from a 40gb partition(6gb used) to a 100gb partition. I set everything up in gparted and and restored the partition image with clonezilla. In gparted, the partition shows the full 100gb partition with 6gb used, however when I boot windows and open the properties on the C: partition, it shows that it's only 40gb. Is there some setting to restore the partition image and use the full 100gb?

View 7 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

General :: Perform A Long Directory Listing Of All Files In The /bin Directory That Have Exactly Three Characters In Their Name?

Jan 18, 2010

How do you perform a long directory listing of all files in the /bin directory that have exactly three characters in their name?

View 1 Replies View Related

General :: Files Created In A Directory Owned By Directory Group?

Jan 29, 2010

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?

View 2 Replies View Related

General :: Cronjob Directory / Send An Email If Directory Contains More Than Ten Files?

Oct 13, 2010

I want to run a cronjob every 15 minutes that checks a directory for files. If the directory contains more than ten files I want it to send an email to me.

All I have is this...

*/15 * * * * ls -l | wc -l | [filename] | mail -s "This is just a test" [email address]

I would rather not write a bash script. Is there an easier way to do this? I was looking into some commands like find and grep.

View 6 Replies View Related

General :: Find Directory Older Than X And Mv Directory With Sub Files Command?

Jul 13, 2011

I'm quite new to linux but I have configured a simple ftp server and it's working great. I have a FTP-Shared folder with upload and download subfolders. Under upload's and download's I have identical category subfolders like mp3's, movies, software etc. in both. As the guy's upload, I would like to create a line crontab where I can move all the content under /FTP-Shared/upload/mp3/* older than 14 day's to FTP-Shared/downloads/mp3/ recursively (Like in cp command), but the timestamp must be searched on the first directory and not sub files example: /mp3/Club Dance/CD1/Hallo world.mp3This is how far I got:[root@clients ~]# /usr/bin/find /FTP_Shared/upload/Mp3s/ -depth -mindepth 1 -mtime +14 -type d -exec mv -f {} /FTP_Shared/download/Mp3s/ ;This command moves the directory and files, but it is not recursively

View 4 Replies View Related

General :: Link A Directory In Ubuntu To A Directory In Windows 7?

Apr 12, 2010

I've just installed Ubuntu 10.04, trying out linux for the first time. I'm wondering if it's possible to link my documents folder in Ubuntu to my documents folder in Windows, so that when I open the folder in Ubuntu, I am linked to the folder in Windows.

View 1 Replies View Related

General :: Mount One Directory To Another While Mapping The Original Directory's UID To Another

Aug 23, 2011

I'd like to mount the directory /var/www/mysite to the directory /home/daniel/mysite, but also have the user of the mounted files mapped from the original user (www-data) to my own user (daniel). So that the file /var/www/mysite/index.php who's user is www-data will appear in the mounted directory as /home/daniel/mysite/index.php and be owned by daniel - and alternatively, if I create a file /home/daniel/mysite/test.php with my own user, it will be created in the original directory under the user www-data Is it possible? If not, what alternatives do I have so I can use an IDE and still make sure all the files belong to the HTTP server's user?

View 2 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related

General :: Using Cp Properly - Copy A Directory Somewhere Else Into This Current Directory ?

May 13, 2011

I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.

Code:

That is what it shows in the man pages, but when I do that, it says cp: no match

View 5 Replies View Related

General :: Symlink Each Of The Files In One Directory To Another Directory?

Feb 11, 2011

If I have a directory /foo with a few files in it, how do I symlink each entry in /foo into /bar/? For instance, if /foo has the files a, b and c, I want to create three symlinks:

/bar/a -> /foo/a
/bar/b -> /foo/b
/bar/c -> /foo/c

View 3 Replies View Related

General :: Auto Mount More Than Directory In The Same Directory ?

Apr 7, 2010

How can i auto mount more than directory in the same directory ? i want to automount 2 home directories in the /home and still be able to enter the other home directories !

The problem that i've another account on the system with home directory joe when the user1 home directory auto mounted i become unable to enter joe home directory !

View 1 Replies View Related

General :: Changes Directory To The Previous Working Directory?

May 15, 2011

Just a simple question

Code:
$ cat -
do in the Bash? I know 'cd -' changes directory to the previous working directory, but 'cat - ' does not seem to do the same thing.

View 3 Replies View Related

General :: Access Directory Outside Of Home Directory?

Apr 13, 2010

I'm using Mac OS X's Terminal.app shell to compile and run Fortran programs. One such program resides outside of my home directory (it is in the Applications folder, which resides on my hard drive but seems to be outside of my home folder). How can I navigate into this directory using Terminal.app to run the programs that reside there?

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved