Lost in transfer: Files going to wrong desktop.
Today I was backing up my servers mysql database remotely using:
/usr/local/mysql/bin/mysqldump -u username -ppassword –skip-lock-tables –add-drop-table –all-databases > remotebackup.sql
I was using the Command Shell in Webmin
Usually when I backup using this method it saves the file to my user home folder located at:
Users/Username/
I viewed that folder but the file was no where in sight.
I went back to the command shell and typed ls to see the folders contents.
The files it returned were most of the same files it should have plus the files I was looking for.. I noticed though that folder did not have some of the files in my real home folder.
I finally found a terminal command that shows the path of the folder you are viewing. the command is PWD
PWD = Print Working Directory
I typed that into the shell and to my surprise I got:
/private/var/root
Im not sure why it got sent there, but at least I found it….
