Creating a Backup Job
Configure Basic Settings
- Name: Descriptive name for the backup job (e.g., “Daily Media Backup”)
- Volume: Select the volume to back up
- Repository: Choose the destination repository
- Enabled: Toggle to activate/deactivate the schedule
Set Schedule
- Daily at 2 AM:
0 2 * * * - Every 6 hours:
0 */6 * * * - Weekly on Sunday at midnight:
0 0 * * 0 - Monthly on the 1st at 3 AM:
0 3 1 * *
Configure Retention Policy (Optional)
Set Backup Filters (Optional)
Backup Schedule Configuration
Cron Expressions
Cron expressions define when backups run. The format is:| Expression | Description |
|---|---|
0 2 * * * | Daily at 2:00 AM |
0 */4 * * * | Every 4 hours |
30 3 * * 1 | Every Monday at 3:30 AM |
0 0 1,15 * * | 1st and 15th of month at midnight |
0 0 * * 0 | Every Sunday at midnight |
*/15 * * * * | Every 15 minutes |
One File System
Enable this option to prevent backups from crossing filesystem boundaries. Useful when backing up directories that might contain mount points. Use case: When backing up/home, prevent including /home/user/mnt if it’s a separate mount.
Retention Policies
Retention policies automatically clean up old snapshots to manage storage usage. Configure multiple rules to keep different snapshot types.Retention Rules
- Keep Last: Keep the most recent N snapshots
- Keep Hourly: Keep the last snapshot for each of the last N hours
- Keep Daily: Keep the last snapshot for each of the last N days
- Keep Weekly: Keep the last snapshot for each of the last N weeks
- Keep Monthly: Keep the last snapshot for each of the last N months
- Keep Yearly: Keep the last snapshot for each of the last N years
- Keep Within Duration: Keep all snapshots within a time period (e.g., “7d”, “3m”, “1y”)
Retention Policy Examples
Simple: Keep Last 7 Backups
Simple: Keep Last 7 Backups
Tiered: 7 Daily + 4 Weekly + 12 Monthly
Tiered: 7 Daily + 4 Weekly + 12 Monthly
- Last 7 days: one snapshot per day
- Last 4 weeks: one snapshot per week
- Last 12 months: one snapshot per month
Duration-Based: Keep 30 Days
Duration-Based: Keep 30 Days
h- hours (e.g., “24h”)d- days (e.g., “7d”)w- weeks (e.g., “4w”)m- months (e.g., “3m”)y- years (e.g., “1y”)
Comprehensive: Long-Term Storage
Comprehensive: Long-Term Storage
- Always keep last 3 backups
- Last 7 days: one snapshot per day
- Last 4 weeks: one snapshot per week
- Last 12 months: one snapshot per month
- Last 5 years: one snapshot per year
Applying Retention Policies
Retention policies are automatically applied after each successful backup. You can also manually trigger retention cleanup:- Navigate to the backup schedule
- Click Run Retention (forget)
- Review the snapshots that will be removed
- Confirm the operation
Backup Filters
Control which files and directories are included in backups using pattern matching.Include Patterns
Explicitly include specific files or directories. When include patterns are set, only matching files are backed up. Examples:Exclude Patterns
Exclude specific files or directories from backups. Common exclusions:*- Matches any characters except/**- Matches any characters including/?- Matches exactly one character[abc]- Matches one character from the set[a-z]- Matches one character from the range
Exclude If Present
Skip directories containing a specific file. Useful for letting applications opt-out of backups. Example:.nobackup, it skips that entire directory.
Pattern Examples
Exclude All Video Files
Exclude All Video Files
Exclude Temporary and Cache Files
Exclude Temporary and Cache Files
Include Only Configuration Files
Include Only Configuration Files
Exclude Development Directories
Exclude Development Directories
Running Backups
Automatic Execution
Once enabled, backup schedules run automatically at the configured times. The next scheduled run time is shown on the backup schedule details page.Manual Execution
Run a backup immediately without waiting for the schedule:- Navigate to the backup schedule
- Click Run Now
- Monitor the backup progress in real-time
Monitoring Progress
During a backup, Zerobyte displays:- Files scanned
- Bytes processed
- Upload speed
- Estimated time remaining
- Current file being backed up
Stopping Backups
To cancel a running backup:- Navigate to the backup schedule
- Click Stop Backup
- Confirm the cancellation
Backup Mirrors
Mirrors automatically copy snapshots to additional repositories for redundancy.Backup Tags
Tags help organize and filter snapshots. Common use cases:- Environment tags:
production,development,staging - Application tags:
database,media,documents - Purpose tags:
daily,weekly,monthly
Backup Status
Each backup schedule shows its status:- Success (green): Last backup completed successfully
- Warning (yellow): Backup completed with warnings
- Error (red): Last backup failed
- In Progress (blue): Backup currently running
- Last backup time
- Next scheduled backup time
- Backup duration
- Error messages (if any)
- List of snapshots created by this schedule
Troubleshooting
Backup fails immediately
Backup fails immediately
- Verify the volume is mounted and accessible
- Check repository connectivity and authentication
- Review backup schedule settings for errors
- Check container logs for detailed error messages
Backup takes too long
Backup takes too long
- Reduce the amount of data by using exclude patterns
- Check network bandwidth between Zerobyte and the repository
- Consider backing up during off-peak hours
- Use bandwidth limiting if competing with other services
Repository runs out of space
Repository runs out of space
- Review and adjust retention policies
- Run retention cleanup manually to free space
- Consider using a larger repository or archival storage
- Check for failed backups creating orphaned data
Backups don't run on schedule
Backups don't run on schedule
- Verify the schedule is enabled
- Check the cron expression is correct
- Ensure container timezone (
TZ) is set correctly - Check if a previous backup is still running (blocks new runs)
Files are missing from backups
Files are missing from backups
- Review include/exclude patterns
- Check for directories with “exclude if present” markers
- Verify file permissions allow reading
- Ensure “one file system” isn’t excluding mounted directories
Best Practices
Schedule backups during off-hours
Schedule backups during off-hours
Use appropriate retention policies
Use appropriate retention policies
Test your backups regularly
Test your backups regularly
Monitor backup status
Monitor backup status
Use exclude patterns wisely
Use exclude patterns wisely
Implement the 3-2-1 strategy
Implement the 3-2-1 strategy
