I’m looking for a secure alternative to doing something like this,
wget --mirror --preserve-permissions --directory-prefix=/hdd2/website-backups --exclude-directories=special,stats --ftp-user=user --ftp-password=pass ftp://ftp.domain.com
It’s executed via cron.
The “–mirror” switch in that is important to me.
Have you tried
rsync? (I’ve never tried it with FTP before, but I’d expect that something could be done. Definitely works with SFTP/SSH.)