Here’s some code I’ve used to backup my home directory to a remote FTP server. Have a look through the code to see where you need to replace things – you’re going to need to change the home directory name, and the FTP server details for a start. It’s pretty unpolished, but it’s working for me. Leave a comment if you’re stuck and I’ll try and help you.
nano ftpbackup/usr/bin/lftp -f /home/matt/ftpbackup.settings
nano ftpbackup.settings
open ftp://username:password@ftp.server.address
mkdir /mattshomebackup/
mirror -Rc /home/matt/ /mattshomebackup/
exitexport EDITOR=nano
crontab -e0 3 * * * /home/matt/ftpbackup >/dev/null 2>&1




