All posts

CortenDesk 1.13.2 fixes FTPS off-site copies

FTPS off-site copies now handle close errors, verify upload size, test real write access, and avoid clear data connections.

Illustration of a secure off-site copy being checked before it is stored.
FTPS copy fixes1.13.2

FTPS copies work again

CortenDesk 1.13.2 fixes FTPS off-site copies.

Some FTP servers, including vsftpd and Pure-FTPd, end the TLS session without close_notify. PHP reported that as an error inside ftp_close(), which made 1.13.1 fail every connection before anything was copied.

Closing a connection can no longer fail a copy or hide the real error.

FTP errors also quote the server's own reply now, such as "Login incorrect", "Permission denied" or "Non-anonymous sessions must use encryption". That should make failed off-site copies easier to fix.

Uploads are checked

A broken FTP upload no longer counts as a finished copy. Each upload is checked by size. If it is short or broken, CortenDesk removes it.

If a backup already exists at the target but has a different size, the off-site copy uploads it again. This covers a copy that was cut short by a restart.

Test connection does a real write test

For FTP, Test connection now does what a backup run does. It lists the directory, uploads a small file, and deletes it again.

The result appears under the button. Data-connection and permission problems should show up there before the next backup run.

FTP server handling

Servers behind NAT work without setup. FTP data connections go to the host you entered unless the server advertises a different public address. If the first choice does not connect, CortenDesk tries the other one.

Servers that refuse passive mode still get active mode. With TLS on, the backup is never sent in clear. A server that will not encrypt data connections is refused.

Only one off-site copy runs at a time. If another run starts while a copy is still active, it leaves the target alone. Its backup goes up with the next run.

Messages are clearer for implicit FTPS on port 990, SFTP on the FTP port, servers without AUTH TLS, TLS 1.0/1.1-only servers, blocked passive ports, and "421 too many connections".

Updating

There are no database migrations in this release.

FTPS support is explicit FTPS only, using AUTH TLS, usually on port 21. PHP's FTP client does not verify the server's certificate, so self-signed certificates work.

docker pull marcpope/cortendesk:1.13.2
docker pull ghcr.io/marcpope/cortendesk:1.13.2

Read the full release notes.