Unable to create a cron backup task

llamprec

Verified User
Joined
Apr 6, 2022
Messages
38
I am trying to create a backup using cron to FTP the backup to an external server.

step 1: what? All Users
cronback1.png
step2: when ? set cron job times as shown in cronback2.png
step3: where? set all the FTP server and user details.
cronback2.png
step4: what? all data

At this point I click Schedule, and almost instantly receive the error seen in below image.
cronbackerror.png

Researching the errors, none of the results help resolve my issue.

I also checked the contents of the file /usr/local/directadmin/data/admin/backup.conf. everything seems correct there.

If I open a terminal session to the DA server and run and ftp to the remote server, I can connect and login without any issues. (I have obfuscated the ipaddress and username/password ). Below is an extract of the successfull ftp on the commandline.

root@server:~# ftp xxx.xxx.xxx.xxx
Connected to xxx.xxx.xxx.xxx.
220 ProFTPD Server (zfs2-evo FTP Server) [::ffff:10.0.1.50]
Name (xxx.xxx.xxx.xxx:test): ftpuser
331 Password required for ftpuser
Password:
230-Welcome to TrueNAS FTP Server
230 User ftpuser logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> quit
221 Goodbye.

How and why is it that I can ftp on the commandline successfully, but cannot do the same using the directadmin backup portal.

Does anyone have any idea how I can resolve this.

Thanks
Lawrence
 
You might want to do a seach on the forums for this. It's a very common error with curl, happening a lot.

Often it has to do with the fact that you have to open PASV ports on your receiving server (and sending server) in the firewall.
Also be sure you don't have curl installed 2 times. Use either via OS or via custombuild. Take care you don't have both installed.

Check this to as workaround:
 
You're welcome. Glad to hear it's fixed.
If you're able to edit your first post, please edit it and add the solved prefix. If not... not a biggie. ;)
Thank you.
 
Back
Top