I'd like to automount an FTP folder using curlftpfs
putting in fstab
a row like:
curlftpfs#user:pwd@myhost:port/folder/ /mnt/mymountfolder fuse allow_other,uid=1000,gid=1000,umask=0022,_netdev 0 0
Normally it wouldn't work, as during the boot the network (wifi usually) is not available for my laptop. I read that _netdev
option in fstab should ensure the mounting only when the network is available, but I receive the message:
Error connecting to ftp: Couldn't resolve host myhost
Alternatively I could mount the resource with an autorun script after the login has been made, but I'd like much more the fstab solution.
The final goal is to syncronize a local folder with the ftp folder with a crontab rsync, so if you have other suggestions, I will be grateful!