We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!

x

VSFTP making a ftp account to backup the server

thechase22
thechase22 asked
on
367 Views
Last Modified: 2013-12-15
Hey Guys

Ive got vsftpd setup on my server, and it restricts the user to its home directory, I was wondering how I could have an ftp user download the whole entire system, for example start from /

But the users restricted to the root is /home/vsftpusers.

I cant quite get around the solution or think of a way I can do it, and I dont think its a good idea to use root to perform the task

Any suggestions?

Cheers
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Isnt that part of ssh? I think I read something like that before.

My dedicated server is currently on fedora core 5, 64 bit, ive had so many problems trying to install drivers and programs, my sites are about to go live on this server.

So im  thinkign well all the hard work ive done on the server so far, ill save it and migrate it, but put it back to fedora core 5 32 bit.

You know one of them jobs you just have to do or you wont be happy untill its fixed.

Any other ideas then now u know my situation?

Commented:
For your exact situation I have no solution out of my head. But again - if you backup all your data to a tgz file you can then copy it with your current ftp setup and restore it later on the new machine. Tgz only puts everything in a single file and compresses it. You still have access to all the files and all, so...

Author

Commented:
Can I just ask, how do you do linux backup? what software do you use? or solution?
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Ok ill take in what you said

One other question, is it possible to somehow have 2 local roots for the ftp.

heres the situation, I have my ftp local root as /var/ww/html/ as you guessed they are ftp accounts for uploading webpages, that I restrict these users.

But sometimes I find it hard to transfer files from windows to linux, so what I do is use a ftp account that uploads straight into /var/ftp/pub/

So is there a way this can be done? 2 different types of users, tell me any ideas you have on your mind

Cheers
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Hi, You can use symbolic links in your directory and let FTP User follow these links.
Regards,
ilker

Author

Commented:
Hey guys thanks for your great replys, let me take a look and get back to you

Author

Commented:
Hi again

So im trying to use rsync to get the remote files, to this local, is that possible?

The article im reading is trying to put the local to the remote, quite the opposite of what I need.

Author

Commented:
Hey guys.

I managed to sort it out in the end, I noticed that I could use cute ftp, and login via SSH and transfer the files over.

My dedicated webserver was fedora core 6 x64 version, I had been having so many issues with x64 concerning drivers and couldnt do various things.

I also had plesk installed that I was manually removing.

So I wanted to go back to a clean Fedora 6 32 bit version.

So thanks for your help and ill distribute the points accordingly.

Curt

I successfully just did it, reimaged the server, I moved all the databases and websites back it worked a treat.

Rsync was helpful, not for this stage, but for other ideas I have,.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.