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=ftp_user mode=ftp password=ftp_pass 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"
I have attached the screenshot of the log.
but this script does not working. Please help me for solving this issue.