Automated Instance Backup to Zata S3 Using Restic

Back up your NeevCloud Linux Instance to Zataarrow-up-right S3 object storage with encryption, deduplication, and automated scheduling using Restic, A fast, secure, open-source backup tool.

Overview

Feature
Details

Backup tool

Resticarrow-up-right (open source)

Storage backend

Encryption

AES-256 (client-side, at rest)

In-transit security

TLS 1.3

Backup type

File-level (incremental, deduplicated)

Supported distros

Ubuntu/Debian, RHEL/CentOS, AlmaLinux

Scheduling

systemd timer

Prerequisites

  • A running NeevCloud Linux Instance.

  • A Zata S3 bucket (create one from the Zata Consolearrow-up-right)

  • 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_PASSWORD securely. 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 Zataarrow-up-right 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:

Rule
Value

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

Command
Description

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 S3arrow-up-right credentials, bucket configuration, or backup setup, contact NeevCloud support.

Last updated