Giter VIP home page Giter VIP logo

Comments (3)

NirtuavLuap avatar NirtuavLuap commented on July 27, 2024 1

I agree, this option could really help :)

from docker-mc-backup.

itzg avatar itzg commented on July 27, 2024

That's a great point and suggestion.

from docker-mc-backup.

Yanni-X avatar Yanni-X commented on July 27, 2024

Maybe not useful for development of this feature, but in the meantime you can use a CRON job to at least copy the latest backup with a .backup file ending so that it doesn't get pruned. Mine looks like that, you probably need to adapt the directory.

0 1 * * * cp -p "/home/docker/mc-backups/`ls -t1 /home/docker/mc-backups| head -n 1`" /home/docker/mc-backups/latest.tgz.backup

it copies the latest backup, and if latest.tgz.backup is the latest one, it doesn't do anything. And the prune-script will not prune it because it only looks for *.tgz

from docker-mc-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.