Skip to main content

Backup & Recovery

This guide covers backup strategies, configuration export, and disaster recovery procedures for Anava deployments.

Backup Overview

What to Back Up

Data TypeLocationBackup Method
ConfigurationCloudExport via API/UI
Skills & ProfilesCloudGroup export
User AccountsCloudAdmin export
Camera SettingsCamerasAxis backup utility
Sessions/EventsCloudScheduled export

Backup Strategy

Backup Strategy

Configuration Backup

Exporting Group Configuration

Export all settings for a group:

Via UI:

  1. Go to Groups → Select group
  2. Click SettingsExport
  3. Choose format (JSON recommended)
  4. Save file securely

Via API:

curl -X GET "https://api.anava.ai/v1/groups/{groupId}/export" \
-H "Authorization: Bearer {token}" \
-o group-backup-$(date +%Y%m%d).json

Export Contents

ComponentIncluded
Group settings
Skills
Profiles
Camera assignments
Device overrides
Schedules

Export Formats

FormatUse CaseSize
JSONAPI integration, restoreMedium
YAMLHuman readable, version controlMedium
CSVSpreadsheet reviewSmall

Automated Exports

Schedule regular exports:

Backup Schedule:
Frequency: Weekly (Sunday 2 AM)
Groups: All
Format: JSON
Destination: S3://backups/anava/
Retention: 90 days

Session/Event Backup

Session Export

Export session data for archival:

  1. Go to Sessions
  2. Set date range filter
  3. Click Export
  4. Choose:
    • Metadata only (CSV)
    • Full data (JSON)
    • With images (ZIP)

Scheduled Export

Configure automatic session exports:

SettingRecommendation
FrequencyDaily
TimeAfter midnight
RangePrevious 24 hours
FormatJSON + images
RetentionPer compliance requirements

Archival Storage

Store backups in secure location:

OptionProsCons
Cloud storage (S3, GCS)Durable, accessibleOngoing cost
Local NASLow costSingle site risk
Tape/Cold storageCheapestSlow recovery

Camera Configuration Backup

Axis Camera Backup

Back up camera settings separately:

Via Camera Web UI:

  1. Access camera web interface
  2. Go to SystemMaintenance
  3. Click Create backup
  4. Save .tar file

Via VAPIX API:

curl -u admin:password \
"http://192.168.1.100/axis-cgi/serverreport.cgi?type=backup" \
-o camera-backup.tar

What's Backed Up

Camera ComponentIn Backup
Network settings
User accounts
Video settings
Analytics config
ACAP settings
I/O configuration

Batch Camera Backup

For many cameras, use Axis Device Manager:

  1. Select cameras in ADM
  2. ConfigurationBackup
  3. Save all backups to designated folder
  4. Document camera-to-file mapping

User Account Backup

Exporting Users

Export user list and roles:

  1. Go to SettingsUsers
  2. Click Export Users
  3. Format: CSV or JSON

Export Contents

FieldIncluded
Email
Role
Group access
Last login
MFA status✓ (status only)
Passwords✗ (never exported)

User Recovery

Users can be re-imported, but:

  • Passwords must be reset
  • MFA must be reconfigured
  • OAuth links must be re-established

Restore Procedures

Restoring Configuration

Via UI:

  1. Go to GroupsImport
  2. Upload backup JSON file
  3. Choose:
    • Create new (new group IDs)
    • Overwrite (replace existing)
  4. Review changes
  5. Confirm import

Via API:

curl -X POST "https://api.anava.ai/v1/groups/import" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-d @group-backup.json

Import Options

OptionBehavior
Create newNew group with new IDs
OverwriteReplace existing group
MergeAdd to existing (skills/profiles)

Camera Reassignment

After restore, reassign cameras:

  1. Cameras may have different serial numbers
  2. Review camera assignments
  3. Update as needed

Restore Verification

After restore, verify:

  • All groups present
  • Skills configured correctly
  • Profiles active
  • Camera assignments correct
  • Test detection working
  • VMS receiving events

Disaster Recovery

DR Scenarios

ScenarioRecovery Path
Configuration corruptionRestore from backup
Accidental deletionRestore from backup
Cloud outageWait for service restore
Camera failureReplace and reconfigure
Complete site lossFull rebuild from backups

Recovery Time Objectives

ComponentRTORPO
Cloud service< 4 hours0 (real-time)
Configuration< 1 hourLast backup
Camera< 1 hourLast backup
Historical dataVariableDaily backup

DR Procedure

Step 1: Assess

1. Identify what was lost
2. Determine scope of impact
3. Gather latest backups
4. Notify stakeholders

Step 2: Prepare

1. Verify backup integrity
2. Prepare new infrastructure (if needed)
3. Document recovery plan
4. Assign responsibilities

Step 3: Restore

1. Restore cloud configuration
2. Verify cloud services operational
3. Restore camera configurations
4. Reassign cameras to groups
5. Test detection pipeline

Step 4: Verify

1. Test all profiles
2. Verify VMS integration
3. Confirm notifications
4. Document any changes
5. Update stakeholders

DR Checklist

Pre-disaster preparation:

  • Regular backup schedule configured
  • Backups tested (restore verified)
  • Backup storage accessible independently
  • DR procedure documented
  • Team trained on recovery
  • Contact list current

DR Testing Program

Disaster recovery capabilities must be validated through regular testing. This section defines the DR testing program that ensures Anava deployments can be recovered within defined objectives.

Recovery Objectives

ObjectiveTargetMeasurement
RTO (Recovery Time Objective)4 hoursTime from disaster declaration to full service restoration
RPO (Recovery Point Objective)24 hoursMaximum acceptable data loss measured in time

Objective Breakdown by Component:

ComponentRTORPONotes
Cloud configuration1 hour24 hoursFrom weekly backup
User accounts1 hour24 hoursPasswords require reset
Camera configs2 hoursQuarterlyFrom ADM backup
Historical sessions4 hours24 hoursFrom daily export
Detection pipeline30 minN/AStateless after config restore

Test Schedule

DR tests are conducted quarterly to validate recovery capabilities and maintain team readiness.

QuarterTest TypeScopeDuration
Q1 (Jan-Mar)Full DR drillAll components4 hours
Q2 (Apr-Jun)Tabletop exerciseScenario walkthrough2 hours
Q3 (Jul-Sep)Full DR drillAll components4 hours
Q4 (Oct-Dec)Tabletop exerciseScenario walkthrough2 hours

Additional Testing:

  • Monthly: Configuration restore verification (1 hour)
  • After major changes: Targeted recovery test
  • Annually: Third-party DR audit (if required)

Test Scenarios

Scenario 1: Configuration Corruption

Trigger: Production configuration becomes corrupted or accidentally deleted.

Procedure:

  1. Declare test scenario active
  2. Export current configuration (for comparison)
  3. Simulate corruption by noting current state
  4. Restore from most recent weekly backup
  5. Verify all groups, skills, and profiles
  6. Reassign test cameras
  7. Validate detection pipeline
  8. Document time and issues

Success Criteria:

  • Configuration restored within 1 hour
  • All groups present and accurate
  • Detection pipeline operational
  • No data loss beyond RPO

Scenario 2: Camera Infrastructure Loss

Trigger: Multiple cameras require replacement (hardware failure, site damage).

Procedure:

  1. Identify affected cameras from inventory
  2. Retrieve camera backups from ADM archive
  3. Configure replacement hardware
  4. Restore camera settings from backup
  5. Re-provision Anava ACAP
  6. Reassign to appropriate groups
  7. Verify integration and detection

Success Criteria:

  • Cameras operational within 2 hours
  • Settings match pre-disaster state
  • VMS integration functional
  • Detection accuracy validated

Scenario 3: Complete Cloud Recovery

Trigger: Full cloud environment requires rebuild (catastrophic failure, security incident).

Procedure:

  1. Activate secondary/DR environment (if available)
  2. Restore user accounts from backup
  3. Import all group configurations
  4. Restore camera assignments
  5. Reconfigure VMS integrations
  6. Validate all detection pipelines
  7. Notify users of password reset requirement
  8. Re-establish OAuth connections

Success Criteria:

  • All services operational within 4 hours
  • Data loss within 24-hour RPO
  • All integrations functional
  • User access restored

Scenario 4: Tabletop Exercise

Trigger: Quarterly scenario review without system changes.

Procedure:

  1. Present scenario to DR team
  2. Walk through response steps verbally
  3. Identify gaps in documentation
  4. Review contact list accuracy
  5. Validate backup accessibility
  6. Update procedures as needed

Success Criteria:

  • All team members understand roles
  • Procedures are current and complete
  • Contact information verified
  • Backup locations confirmed accessible

Test Execution Checklist

Pre-Test:

  • Schedule test window with stakeholders
  • Notify affected teams
  • Verify backup availability and integrity
  • Prepare test environment (if not production)
  • Assign roles and responsibilities
  • Prepare timing/documentation materials

During Test:

  • Record start time
  • Log each step completion time
  • Document any blockers or issues
  • Note workarounds required
  • Capture screenshots of key milestones
  • Track personnel involved

Post-Test:

  • Record completion time
  • Calculate actual RTO achieved
  • Verify RPO compliance
  • Conduct debrief with team
  • Document lessons learned
  • Update procedures as needed
  • File test report

Success Criteria Matrix

CriterionFull DR DrillTabletopMonthly Verify
RTO met (< 4 hours)RequiredN/AN/A
RPO met (< 24 hours)RequiredN/ARequired
All configs restoredRequiredReviewedRequired
Detection validatedRequiredDiscussedOptional
Integrations workingRequiredDiscussedOptional
Documentation updatedRequiredRequiredAs needed
Report filedRequiredRequiredRequired

Test Documentation

Test Report Template

Each DR test must produce a formal report. Use this structure:

# DR Test Report

## Test Information
- **Test Date:** YYYY-MM-DD
- **Test Type:** [Full Drill / Tabletop / Monthly Verify]
- **Scenario:** [Description]
- **Test Lead:** [Name]
- **Participants:** [Names]

## Timing Summary
- **Test Start:** HH:MM
- **Test End:** HH:MM
- **Total Duration:** X hours Y minutes
- **RTO Target:** 4 hours
- **RTO Achieved:** X hours Y minutes
- **RTO Status:** [PASS / FAIL]

## Recovery Point Analysis
- **Last Backup Date:** YYYY-MM-DD HH:MM
- **Simulated Disaster Time:** YYYY-MM-DD HH:MM
- **Data Gap:** X hours
- **RPO Target:** 24 hours
- **RPO Status:** [PASS / FAIL]

## Execution Summary

### Steps Completed
1. [Step] - [Duration] - [Status]
2. [Step] - [Duration] - [Status]
...

### Issues Encountered
| Issue | Impact | Resolution | Action Item |
|-------|--------|------------|-------------|
| [Description] | [High/Med/Low] | [How resolved] | [Follow-up] |

## Verification Results
- [ ] Configuration restored accurately
- [ ] All groups present
- [ ] Skills and profiles functional
- [ ] Camera assignments correct
- [ ] Detection pipeline operational
- [ ] VMS integration verified
- [ ] User access restored

## Lessons Learned
1. [Finding and recommendation]
2. [Finding and recommendation]

## Action Items
| Item | Owner | Due Date | Status |
|------|-------|----------|--------|
| [Task] | [Name] | YYYY-MM-DD | [Open/Closed] |

## Sign-Off
- **Test Lead:** _________________ Date: _______
- **IT Manager:** _________________ Date: _______
- **Compliance:** _________________ Date: _______

Report Storage

Report TypeRetentionStorage Location
Full DR drill3 yearsCompliance archive
Tabletop exercise2 yearsIT documentation
Monthly verification1 yearOperations logs

Compliance Coverage

DR testing addresses the following compliance requirements:

SOC 2 Type II

Trust Services Criteria A1.3 - Recovery Testing

"The entity tests recovery plan procedures supporting system recovery to meet its objectives."

Evidence Required:

  • Quarterly test schedule and execution records
  • Test reports with RTO/RPO measurements
  • Action items and remediation tracking
  • Management sign-off on test results

How Anava Addresses:

  • Quarterly DR drills with documented results
  • Automated backup verification with integrity checks
  • Defined RTO (4 hours) and RPO (24 hours) with measurement
  • Formal test reports filed in compliance archive

ISO 27001:2022

Control A.17.1.3 - Verify, Review and Evaluate Business Continuity

"The organization shall verify the established and implemented information security continuity controls at regular intervals in order to ensure that they are valid and effective during adverse situations."

Evidence Required:

  • Documented test procedures
  • Test execution records
  • Gap analysis and improvements
  • Regular review cycle

How Anava Addresses:

  • Documented test scenarios and procedures
  • Quarterly test execution with reports
  • Lessons learned driving procedure updates
  • Annual review of DR program effectiveness

Additional Frameworks

FrameworkRelevant ControlCoverage
NIST CSFPR.IP-9, PR.IP-10Recovery planning and testing
HIPAA164.308(a)(7)(ii)(D)Testing and revision procedures
PCI DSS 4.012.10.2Annual testing of incident response

Continuous Improvement

After each DR test, the following review process ensures ongoing improvement:

  1. Immediate Debrief (within 24 hours)

    • What worked well?
    • What needs improvement?
    • Any critical gaps identified?
  2. Procedure Updates (within 1 week)

    • Update documentation based on findings
    • Refine runbooks and checklists
    • Adjust backup schedules if needed
  3. Training Updates (within 1 month)

    • Address knowledge gaps
    • Update team training materials
    • Schedule additional training if required
  4. Quarterly Review

    • Trend analysis across tests
    • RTO/RPO performance tracking
    • Resource and tool assessment

Backup Best Practices

Schedule

Backup TypeFrequencyRetention
ConfigurationWeekly12 weeks
SessionsDaily30 days
Full exportMonthly12 months
Camera configsQuarterly4 quarters

Storage

  1. Use multiple locations

    • Primary: Cloud storage
    • Secondary: Different region/provider
  2. Encrypt backups

    • At rest: AES-256
    • In transit: TLS
  3. Verify integrity

    • Checksums on all backups
    • Regular restore tests

Testing

Monthly:

  • Restore random configuration backup
  • Verify all settings present
  • Document any issues

Quarterly:

  • Full DR drill
  • Time the recovery
  • Update procedures

Documentation

Maintain:

  • Backup locations and access
  • Recovery procedures
  • Contact list
  • Change log

Backup Automation

Script Example

#!/bin/bash
# anava-backup.sh - Weekly configuration backup

DATE=$(date +%Y%m%d)
BACKUP_DIR="/backups/anava"
API_TOKEN="your-api-token"
GROUPS="group1 group2 group3"

for GROUP in $GROUPS; do
curl -s -X GET "https://api.anava.ai/v1/groups/${GROUP}/export" \
-H "Authorization: Bearer ${API_TOKEN}" \
-o "${BACKUP_DIR}/${GROUP}-${DATE}.json"

# Verify backup
if jq empty "${BACKUP_DIR}/${GROUP}-${DATE}.json" 2>/dev/null; then
echo "✓ ${GROUP} backup successful"
else
echo "✗ ${GROUP} backup FAILED"
# Send alert
fi
done

# Cleanup old backups (90 days)
find ${BACKUP_DIR} -name "*.json" -mtime +90 -delete

Scheduling

Linux (cron):

0 2 * * 0 /path/to/anava-backup.sh

Windows (Task Scheduler):

  • Create basic task
  • Weekly trigger, Sunday 2 AM
  • Action: Run script

Troubleshooting

Backup Fails

  1. Check authentication

    • API token valid?
    • Permissions correct?
  2. Check connectivity

    • API reachable?
    • Storage accessible?
  3. Check space

    • Sufficient storage?
    • Clean old backups

Restore Fails

  1. Check backup integrity

    • File not corrupted?
    • Valid JSON/format?
  2. Check compatibility

    • Version match?
    • Schema compatible?
  3. Check permissions

    • User can import?
    • Group access correct?