Coder Social home page Coder Social logo

Comments (3)

TheRemote avatar TheRemote commented on June 18, 2024

Thanks for letting me know about this. The ScheduleRestart feature has been removed.

There's not really an easy way for me to restart it from within the Docker container. This is meant to be done within your host OS.

Typically on Linux you would use crontab to do this i.e.:

crontab -e

*/30 * * * * docker container restart xxxx  2>&1 >> /home/youruser/log.txt

This would tell Docker to restart the container every 30 minutes. On Windows you could use a scheduled task or other methods within Docker to schedule this.

It turns out this isn't meant to be done from inside a container though. Thanks for reporting it!

from legendary-java-minecraft-paper.

407pilot avatar 407pilot commented on June 18, 2024

Thanks. I had assumed it would restart the container and not the host system. Does that mean I'll need to schedule backups outside the container as well? Any suggestions about where to start?

from legendary-java-minecraft-paper.

TheRemote avatar TheRemote commented on June 18, 2024

Great question. So every time you restart the container it will do the backups so basically if you take care of restarting it then it will take care of the backups too.

You can test this by doing a:

docker container ls

You should see your running container with the container id. Then try doing:

docker container restart xxxx

Now you should have a backup generated in the backup folder.

This won't involve restarting the host OS basically. You will just tell your host OS to restart the container on a timer basically is what people typically will do. You would schedule a timer to run that same command we just ran on the CLI to restart the container if that makes sense.

Hopefully that helps!

from legendary-java-minecraft-paper.

Related Issues (2)

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.