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

Wiki Suggestion #311

Open
ArcherWarrior1 opened this issue Dec 31, 2023 · 0 comments
Open

Wiki Suggestion #311

ArcherWarrior1 opened this issue Dec 31, 2023 · 0 comments

Comments

@ArcherWarrior1
Copy link

Adding basic instructions to the wiki on how to directly use git to retrieve backup files may be beneficial as it gives a lot more utility to users who are not very familiar with git.

If the world files become corrupted and the server will not launch:
git archive -o world.zip 5b8ccfff066793e72e4262496a5a7958be5b7c88 world

For whatever reason someone wants just their playerdata restored:
git archive -o player.zip 5b8ccfff066793e72e4262496a5a7958be5b7c88 world\playerdata

You want to launch a server exactly how it was the other day for whatever reason, regardless of config, mod, or world changes:
git archive -o snapshot.zip 5b8ccfff066793e72e4262496a5a7958be5b7c88

Want to see a list of all backups even if the server is not running:
git log --all

Get a list of all backups since a few days ago:
git log --all --since=2023-27-12

Get a list of all backups since a few days ago until last night:
git log --all --since=2023-23-12 --until=2023-29-12-23:00:00

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

1 participant