Skip to content

Create backup-world.mjs #106

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

HowieDuhzit
Copy link
Contributor

This script creates compressed backups of a game world folder and automatically manages storage by keeping only the 7 most recent backups. What it does:

Creates timestamped .tar.gz backups of the world folder Stores backups in a WorldBackups folder inside the world directory Automatically deletes old backups when more than 7 exist Uses system tar command (no external dependencies needed)

Usage: Run node backup-world.mjs to create a backup and clean up old ones.

Description

Please include a summary of the changes and which component(s) are affected. Explain how your changes improve or modify the component's functionality within the Hyperfy ecosystem.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes a component issue)
  • New component
  • Component enhancement
  • Breaking change (would cause existing worlds using this component to behave differently)
  • Documentation update

How Has This Been Tested?

Please describe your tests:

  • Component functionality tests
  • Integration tests with other Hyperfy components
  • World integration testing
  • Cross-browser testing

Test Configuration:

  • Hyperfy Version:
  • Test world setup:
  • Browser(s):
  • Node.js version:

Checklist:

  • My code follows Hyperfy's component architecture
  • I have performed a self-review
  • I have documented the component's usage
  • I have tested the component in multiple scenarios
  • My changes maintain compatibility with existing worlds
  • I have updated the component documentation if needed

This script creates compressed backups of a game world folder and automatically manages storage by keeping only the 7 most recent backups.
What it does:

Creates timestamped .tar.gz backups of the world folder
Stores backups in a WorldBackups folder inside the world directory
Automatically deletes old backups when more than 7 exist
Uses system tar command (no external dependencies needed)

Usage: Run node backup-world.mjs to create a backup and clean up old ones.
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

Successfully merging this pull request may close these issues.

1 participant