FTP server mount different folders

0

Following the steps indicated here Without connection by SSH when mounting curlftpfs I have managed to mount a partition on a server associated with another FTP server.

But I still have problems when doing it in more than one directory. I detail the situation:

FTP Server / one_directory / directory_dos

Dedicated Server / var / www / pagina_uno / backup / var / www / pagina_dos / backup

What I want is to associate / var / www / pagina_uno / backup with / directorio_uno and the same with / var / www / pagina_dos / backup a / dos_directory

The problem is that if I build the CURLFTPS in the following way:

ftp://user_ftp:pass_ftp@server_ftp/directorio_uno /var/www/pagina_dos/backup fuse.curlftpfs auto,allow_other,_netdev,ftp_port=- 0 0

I get the following error when doing the mount -a

Error connecting to ftp: Server denied you to change to the given directory

    
asked by new_user 09.11.2018 в 12:40
source

1 answer

0

The idea for it to work is to make a script that does the following:

  • Connect via FTP to the server
  • Once connected, make a mkdir on the server
  • From the permissions to the new folder
  • Modify the / etc / fstab of the dedicated server
  • do the mount -a
  • I can not connect by ftp on a single line indicating host, user and pass.

        
    answered by 12.11.2018 в 08:09