FBBR – Troubleshooting – FTPS Backup
November 22, 2023
FBBR – Troubleshooting – HTTP
November 24, 2023
FBBR – Troubleshooting – FTPS Backup
November 22, 2023
FBBR – Troubleshooting – HTTP
November 24, 2023

FBBR – Troubleshooting – FTPS Retention

Retention involves the process of changing to the directory, listing files and removing them.
You can get the directory name from the Backup History or from the FTP Server.

To validate user permissions, you can use Filezilla to delete a file.

To list files in the FTP directory, use the below command.

curl -k -u <username> --connect-timeout 10 --noproxy * --silent --show-error --list-only --ssl-reqd ftp://<FTP_SERVER_IP>/<DIRETORY>/

Note: Adding -v will give verbose logging for the command.

To delete a file,

curl -k -u <username> --connect-timeout 10 --noproxy * --show-error -Q 'DELE <directory>/<filename>' ftp://<FTP_SERVER_IP/

The above command would provide an output if there is an error. Else, you can list the files to validate the deletion.

In the Series:

Leave a Reply

Your email address will not be published. Required fields are marked *