Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
All those files listed in blue are probably directories.
If you have lost blogengage.sql then you can use locate to find it. First update the database, then use the command, like this:
As root:
Code:
updatedb # wait a while then, when the prompt comes back:
locate blogengage.sql
It'll tell you where it is.
If you are sure it is on the olddrive then you could just
Code:
find /path/to/olddrive -name blogengage.sql
and it'll print the path to the file, if it exists, otherwise, nothing happens.
I assume you installed CentOS from scratch on the new drive and want to move the old data form the USB drive to the new one. Unless your booting from the old drive mysqldump is not going to dump the correct data. The default data location is /usr/local/mysql/var/. I am not real familiar with mysql but assuming your old system was kept updated you might be able to get away with copying the data and configuration files.
FYI. mysqldump exports a database by generating SQL commands i.e. create, insert. It is a plain text file.
home should contain all your users home directories. CentOS default html directory is /var/www/html which is also where the rest of your files are probably located. What web application are you running?
Sorry about post #11, I hit return and the unfinished post got uploaded by accident. [Mistakes can happen, see below].
I think you are getting lost because you do not know any basic bash commands, and you do not know your way around the filesystem.
You are in a very dangerous situation:
- You are running as root (one tiny typo and all your data can be gone!)
- You do not know what you are doing
- In a situation like this it is very very easy to make a complete mess of things, from which you cannot recover
If these databases and websites are valuable or important to you, I suggest you get a professional to help you, or have very good backups and you are confident you know how to restore from them.
For example, if your USB drive holds all your website & database data, it would have been a very good idea, when you mounted it, to mount it as "Read Only" - That way it is much more difficult to delete your data before it has been safely copied over.
I also fear you are about to run, at full speed, into a shedload of problems with UIDs, GIDs, ownerships and permissions.
Please, get help.
[Where did this system come from? I very much doubt you installed it. I mean this nicely, as perhaps the person who installed it can help you out].
Alright I cannot seen to actually find the blogengage directory.
If I do the command
Does this mean I don't have the directory?
It turns out the blogengagenew in the attachment above is actually a file and contains rsa keys. I don't know what that is about! I cannot seen to locate my blogengage files.
@tredegar sorry I don't answer your questions it's pretty hectic in my pc chair right now lol
Godaddy is the company that installed my new server.
The odd thing is the folder structure should be the same for all websites.
They were all installed in a home/foldername/public_html
Some are directories some are not it's so strange for me!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.