To synchronize the backed up log files from a container to an FTPS server perform the following:
Run the following command to copy the mirror.sh file from docker to host server:
docker cp aaf-aucore-1:/opt/AuCore/data/celery_long/mirror.sh /tmp
Add the following parameters in the mirror.sh file to skip verification of SSL certificate:
set ssl:verify-certificate no
set ftp:ssl-allow true
set ftp:ssl-force true
set ftp:ssl-protect-data true
set ftp:ssl-protect-list true
NOTE:When you reboot the appliance, the data available in the mirror.sh file will be lost.
Save the changes.
Run the following command to copy file to docker container:
docker cp mirror.sh aaf-aucore-1:/opt/AuCore/data/celery_long/
Run the following commands to provide executable rights of the mirror.sh file for users and group:
docker exec -ti aaf-aucore-1 bash
chmod u+x data/celery_long/mirror.sh
chmod g+x data/celery_long/mirror.sh