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 /directory_one /directory_two
Dedicated Server /var/www/page_one/backup /var/www/page_two/backup
What I want is to associate /var/www/page_one/backup with /directory_one and the same with /var/www/page_two/backup to /directory_two
The problem comes 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
It gives me the following error when doing mount -a
Error connecting to ftp: Server denied you to change to the given directory
The idea for it to work is to make a script that does the following:
I can't connect by ftp in a single line indicating host, user and pass.
SOLVED: Creating a script that connects and generates the folders using EOF