I want to upload my Mikrotik router backup file to Linux server using FTP. My linux server is Centos 6.9 and I have configured FTP in server. In mikrotik router I have used this script for taking backup and upload it to server.
:log info "backup beginning now"
:global name=backupfile value=([/system identity get name] . "-" . [/system clock get time])
/system backup save name=$backupfile
:log info "backup pausing for 10s"
:log info "backup being uploaded"
/tool fetch address=server_ip src-path=$backupfile user=ftpuser mode=ftp password=ftppass dst-path="/home/ftp-docs/$backupfile" upload=yes
:log info "backup finished"
:log info "Deleting Backup File"
/file remove $backupfile;
:log info "Deleting Backupfile File"
but this script does not working. Please help me for solving this issue.