How to get webdata use winscp,or sftp in safe mode (centos)?

dear all

my linode was forced shutdown and can only run in safe mode,who can tell me where webdata is put? and how to get it use winscp or other tools.

many many thanks

6 Replies

If by safe mode you mean booting using the rescue tab in linode manager, first use LISH to connect to your node http://library.linode.com/troubleshooti … ng-to-lish">http://library.linode.com/troubleshooting/using-lish-the-linode-shell#sph_connecting-to-lish

Then run service ssh start in lish.

Then run passwd and set a password.

Then from your computer connect via winscp to your servers IP at port 22 user is root and password is the password you set with passwd.

thanks

I have already login my linode via winscp, but cann't found which directory the webdata was puted. I think webdata must be put in one filesystem,and before use it which should be mounted.could you tell me more about this?

You probably want to run mount /dev/xvda /media/xvda and your system will be under /media/xvda it depends on your disk configuration assuming you only have one disk then that should work.

the following is result after issue mount command. seems nothing happened.

please give me help more!.

root@hvc0:~# df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 397008 984 396024 1% /

/dev/xvdh 115874 115874 0 100% /cdrom

/dev/loop0 106496 106496 0 100% /FINNIX

unionfs 397008 984 396024 1% /UNIONFS

tmpfs 10240 0 10240 0% /dev

devshm 253816 0 253816 0% /dev/shm

root@hvc0:~# mount /dev/xvda /media/xvda

root@hvc0:~# df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 397008 984 396024 1% /

/dev/xvdh 115874 115874 0 100% /cdrom

/dev/loop0 106496 106496 0 100% /FINNIX

unionfs 397008 984 396024 1% /UNIONFS

tmpfs 10240 0 10240 0% /dev

devshm 253816 0 253816 0% /dev/shm

root@hvc0:~#

many thanks

I have fund where my webdata is puted!, use winscp I can download web programs, webdata in database can be download or not?

please tell me more about download webdata not only web programs.

Regards.

Assuming you're using MySQL your data will be in /var/lib/mysql copy the contents of that directory then you can restore it to your server simply by uploading to the same directory, this will work as long as both servers use the same version of MySQL (So when restoring restore it to a server with the same OS)

If you're not using mysql let me know what you're using and I'll let you know where it stores stuff.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct