setting up my own ftp backup server

hbhb

Verified User
Joined
Mar 31, 2008
Messages
16
i just lease a server that comes with 2 hard drive.

i want to make use of both hard drive as fully dedicated backup server to backup my other server via ftp.

i have no problem with first hard drive as I can easily create the ftp user via directadmin to /home/backup1

the thing i am having problem is now, i've mounted the /dev/sdb1 as /backup2

now the question is, how am i able to create a FTP account (in DirectAdmin) pointing it to /backup2 ? Or how do I do it in ssh command?
 
Hello,

Since /backup2 is outside of any user home directory, you'll have to do some manual work.
First create the ftp account under the "admin" User, since it's likely the account you'll be using to create the backups anyway.
Create a fake path, say:
/home/admin/backup2

Next, once the ftp account is created, you'll want to change the paths around to point to where you need.
To do that, edit:
/etc/proftpd.passwd

and change the paths arround for the account you just created.
Youll have to chown the /backup2 directory to admin:admin since that's the uid/gid values that will be used by proftpd, as created through DA.

John
 
Back
Top