FBBR – Troubleshooting – FTP Backup
November 20, 2023
FBBR – Troubleshooting – FTPS Backup
November 22, 2023
FBBR – Troubleshooting – FTP Backup
November 20, 2023
FBBR – Troubleshooting – FTPS Backup
November 22, 2023

FBBR – Troubleshooting – FTP 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 list files in the FTP directory, use the below command.

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

Adding -v will give verbose logging for the command

To delete a file,

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

In the Series:

Leave a Reply

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