Use GitHub as a storage backend to leverage version control for your backups. This is best suited for configuration files and smaller backups.
- Go to GitHub
- Sign up for a free account if you don't have one
- Click the + icon in the top-right corner
- Select New repository
- Configure your repository:
- Repository name:
restore-backups(or your preferred name) - Visibility: Private (recommended for backups)
- Initialize: You can add a README if desired
- Repository name:
- Click Create repository
- Click your profile picture > Settings
- Scroll down to Developer settings (in the left sidebar)
- Click Personal access tokens > Tokens (classic)
- Click Generate new token > Generate new token (classic)
- Configure the token:
- Note:
ReStore Backup Access - Expiration: Choose an expiration period (or No expiration)
- Scopes: Select repo (Full control of private repositories)
- Note:
- Click Generate token
- Important: Copy the token immediately (you won't be able to see it again)
For better security, use a fine-grained token:
- Go to Personal access tokens > Fine-grained tokens
- Click Generate new token
- Configure:
- Token name:
ReStore Backup - Expiration: Choose duration
- Repository access: Only select repositories > Choose your backup repository
- Permissions > Repository permissions:
- Contents: Read and write
- Metadata: Read-only (automatically granted)
- Token name:
- Click Generate token and copy it
Open %USERPROFILE%\ReStore\config.json and configure the GitHub section:
{
"storageSources": {
"github": {
"path": "./backups",
"options": {
"token": "your_token",
"repo": "your_repo",
"owner": "your_github_username"
}
}
}
}Configuration Parameters:
- path: Relative path for organizing backups in the repository (default:
"./backups") - token: The personal access token you generated in Step 3
- repo: The name of your backup repository
- owner: Your GitHub username
Notes:
- GitHub has file size limits
- This storage option is best for configuration files, scripts, and smaller backups
- For large file backups, consider using Git LFS or another storage provider
- Keep your token secure - it provides write access to your repository
- You can revoke tokens at any time from GitHub Settings > Developer settings
- Private repositories are free on GitHub for unlimited users
Storage Limits (Free Plan):
- Repository size: Recommended to keep under 5 GB
- File size: 100 MB maximum per file (warning at 50 MB)
- Free tier: 10 GB of Git LFS storage and bandwidth per month
- Best practice: Use GitHub for configuration backups and smaller files; use Google Drive or S3 for large file backups