Saving to local drive and uploading to ftp server
If I save to local storage I can specify the number of days to keep. Does this setting also relate to the number of days kept on the remote ftp server or do i need to manage the archiving of these files myself ?
Comments
If you need this, the easiest option is to use Amazon S3 as your cloud storage, as it has its own options to automatically remove old files.
Thanks
Dave
https://min.io
I have this running as a Docker container and expose the storage via a reverse proxy.
example docker-compose details:
s3:
image: minio/minio:latest
hostname: minio
container_name: minio
restart: always
ports:
- "9007:9000"
volumes:
- /data/backups:/data
- ${USERDIR}/docker/minio/config:/root/.minio
command: server /data
(a useful guide to set up a reverse proxy is here: https://www.smarthomebeginner.com/traefik-2-docker-tutorial/)
You could then script the removal of files using:
mc rm -r --force --older-than 1d2h30m myminio/mybucket