Moving FTP accounts and folders/files from a server to another...
Hi there,
I've been searching the web and Linux Forums especially for about 2 days now, with no success... Many thanks in advance for your help!
What I need to do, as mentioned in this thread title, is to (massively) move FTP accounts from a server (A) to another server (B). Both servers run a linux distrib (A runs Debian, B runs a derived Gentoo, as far as I could see...), and have ProFTPD installed and serving.
I plan to use rsync to copy all folders/files to server B, using the -azv parameters - which will normally preserve permissions while copying.
Now, I would like to "copy" (FTP) users from A to B first, so that when everything is back online, the FTP accounts do work properly. I guess there are two options :
- either the FTP users are "virtual" FTP users created for ProFTPD, so that wouldn't be tough to reflect this on B : I would just need to insure that the real Linux user is created on B (not sure if ProFTPD uses nobody?)
- or the FTP users are real Linux users, and then I need to list all users from A, then create them on B
In case of the seccond option (which is the right one, I guess, regarding what I already know from the server configuration), do any of you know of a quick solution / shell script example I could use to treat all users at once?
Many thanks in advance!
Cheers
Jimshell