Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用自動備份 #5

Closed
whes1015 opened this issue Oct 26, 2021 · 1 comment
Closed

如何使用自動備份 #5

whes1015 opened this issue Oct 26, 2021 · 1 comment

Comments

@whes1015
Copy link

我在源文件中發現AutoBackupDispatcher.java

@keuin
Copy link
Owner

keuin commented Oct 26, 2021

That code fragment is currently useless. The implementation is incomplete because I find it unnecessary to roll my own wheel to run schedule tasks, since most operating systems have already provided such feature (*Scheduled Tasksin Windows andcron` in linux).

Currently I am using cron to run daily backup in my server. Execute crontab -e to start editing your cron configuration file. Then add this line:

0 1 * * * mcrcon -H localhost -P 25575 -p <password> "kb incbak"

which means run kb incbak via RCON on everyday 1 a.m. You have to install mcrcon to make this task valid.

For anyone who is looking for the integrated scheduled backup, I'm sorry that the project is made in my free time, and I am not interested in this feature. However you can use the method described above, or implement it by yourself. This is an open-source project :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants