Skip to content

prof-team/backup-remover

Repository files navigation

remove your backups

With this image you can easy remove your backups files

  1. Pull image from docker hub

docker pull profteam/backup-remover

  1. Now you can use image
version: '3'
 
 services:
   backup_remover:
     image: profteam/backup-remover
     container_name: backup_remover
     environment:
      COUNT_FILES: 5 # it is count of files that we should leave in each sub folder inside folder /backups
     volumes:
       - /var/docker/mysql/backups/:/backups/mysql
       - /var/docker/mongo/backups/:/backups/mongo
       - /var/docker/backup_remover/logs:/var/log
     networks:
       - livenetwork
 networks:
   livenetwork:
     external: true
  1. You can run following command for testing logrotate
docker exec -it backup_remover /bin/sh /remove_backups.sh
  1. You can run following command for testing logrotate
docker exec -it backup_remover /usr/sbin/logrotate /etc/logrotate.conf

About

backup-remover

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published