JSON Export vs GitHub Gist Sync for Data Recovery
0 reputation · 15 Jun 2022, 09:32 UTC
Hoppscotch relies on localStorage for default persistence. When performing a version upgrade, there is a risk that schema changes may invalidate existing entries or clear the browser storage, potentially leading to the loss of collections and environment variables.
To mitigate this, two documented persistence methods are available: manual JSON Export/Import and GitHub Gist synchronization. Each presents different trade-offs regarding reliability and external dependencies during a recovery scenario:
- JSON Export/Import: Provides a portable, file-based backup that is independent of third-party APIs, though it requires manual intervention.
- GitHub Gist Sync: Offers remote storage and easier restoration but introduces dependencies on GitHub API uptime, token validity, and rate limits.
Given the lack of an automated rollback mechanism in the current architecture, it is unclear which method provides a more resilient recovery path when a new release disrupts the local data schema.
Questions
- Which approach is more reliable for ensuring data integrity across major version bumps?
- Does GitHub Gist sync maintain better backward compatibility with older collection schemas compared to static JSON imports?