Automated Instance Backup to Zata S3 Using Restic
Back up your NeevCloud Linux Instance to Zata S3 object storage with encryption, deduplication, and automated scheduling using Restic, A fast, secure, open-source backup tool.
Overview
Prerequisites
A running NeevCloud Linux Instance.
A Zata S3 bucket (create one from the Zata Console)
Zata S3 credentials: Access Key and Secret Key
Root access on the cloud Instance
Install Restic
Ubuntu / Debian
RHEL / CentOS / AlmaLinux
Configure Credentials
Create a secure environment file:
Important: Store your
RESTIC_PASSWORDsecurely. Without it, your backups cannot be restored.
Define Backup Paths
Create include and exclude lists:
Modify these paths based on your application and data layout.
Initialize the Backup Repository
Run this once to create the restic repository in your Zata S3 bucket:
Expected output:
Run Your First Backup
Verify the snapshot:
Automate with Scheduled Backups
Create the backup wrapper script
Create the systemd service and timer
Verify the timer
Test a manual run
Restore from Backup
List available snapshots
Restore the latest snapshot
Restore a specific snapshot
Restore specific files only
Retention Policy
The automated script applies the following default retention:
Daily snapshots
30
Weekly snapshots
4
Monthly snapshots
6
Modify these values in /usr/local/bin/restic-backup.sh to match your requirements.
Useful Commands
restic snapshots
List all backup snapshots
restic ls latest
Browse files in the latest snapshot
restic stats
Show repository size and stats
restic check
Verify repository integrity
restic diff <id1> <id2>
Compare two snapshots
restic forget --dry-run --keep-daily 30
Preview what would be pruned
Check Backup Logs
Troubleshooting
Fatal: unable to open config file Repository not initialized. Run restic init first.
Fatal: wrong password or no key found Verify RESTIC_PASSWORD matches the one used during restic init.
connection refused or TLS handshake error Check network connectivity to idr01.zata.ai. Ensure port 443 is open in your security group.
Slow backup speeds Ensure the VM has sufficient network bandwidth. Restic deduplicates — subsequent backups will be significantly faster than the initial one.
Support
For assistance with Zata S3 credentials, bucket configuration, or backup setup, contact NeevCloud support.
Last updated