LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dump /home directory (https://www.linuxquestions.org/questions/linux-software-2/dump-home-directory-229445/)

kingtas 09-11-2004 05:09 PM

dump /home directory
 
Hi,

Perhaps you can prevent a complete Lixux newbie from throwing the box out the window???

rpm says dump is already installed.

I'm trying to dump my /home/hda to /home/hdb (backup drive)

I su then type:

dump 0 /home/hdb home/hda

bash states dump command not found. Am I supposed to be in a certain directory to use this command? I think I tried them all.

Thanks,

Tom

hw-tph 09-11-2004 05:17 PM

You probably just don't have dump in your $PATH (a list of directories which contain executables - /usr/bin, /usr/sbin, and so on). Type /usr/sbin/dump (if that's where it lives - try whereis dump).


Håkan

kingtas 09-11-2004 06:32 PM

whereis dump returns:

dump: /sbin/dump /sbin/dump.static .....

I go to the /sbin directory and run the dump command I mentioned and get the same message of dump not found.

I just read that dump is not very reliable.

What command would I use from what directory to simply copy

my /dev/hda drive /home directory to my /de/hdb drive?

Heck, I can't even do that without a message about "ommitting this or that" or "no such directory"

hw-tph 09-11-2004 06:59 PM

Linux doesn't work like DOS or Windows in the sense that the current directory is not in the $PATH per default (it is considered a security risk). You will have to either type out the full path (i.e. /sbin/dump) or cd to the directory where the program is located (i.e. /sbin) and type ./dump. "./" indicates "in this very directory".

I haven't used dump, but the dd command would probably do just as well.


Håkan


All times are GMT -5. The time now is 04:11 AM.