Works with the AI Agents you already use
Automated Server Backup Setup (restic, rsync, S3)
by Saizul Amin
This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.
$7
Automated Server Backup Setup (restic, rsync, S3)
Example session with this skill installed
Run the Automated Server Backup Setup skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the automated server backup
Here is what the Automated Server Backup Setup (restic, rsync, S3) skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
===== restic-system.sh =====
#!/bin/sh
# restic backup 'system'. Generated by make_restic_units.py; review before use.
set -eu
# Credentials and RESTIC_REPOSITORY come from the EnvironmentFile in the service unit.
: "${RESTIC_REPOSITORY:?set RESTIC_REPOSITORY}"
: "${RESTIC_PASSWORD_FILE:?set RESTIC_PASSWORD_FILE}"
TAG=system
EXCLUDES=/etc/restic/restic-system.excludes
restic snapshots --latest 1 >/dev/null 2>&1 || {
echo "repository not reachable or not initialised: run restic init first" >&2
exit 1
}
restic backup --tag "$TAG" --exclude-file "$EXCLUDES" --exclude-caches \
--one-file-system \
'/srv/my files'
restic forget --tag "$TAG" --group-by host,tags --prune \
--keep-daily 7 --keep-weekly 4 --keep-monthly 6
# Verify repository structure and read a random sample of the data.
restic check --read-data-subset=5%
===== restic-system.service =====
[Unit]
Description=restic backup (system)
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
EnvironmentFile=/etc/restic/restic-system.env
Environment=RESTIC_CACHE_DIR=restic
ExecStart=/bin/sh /etc/restic/restic-system.sh
Nice=10
IOSchedulingClass=idle
PrivateTmp=true
ProtectSystem=full
NoNewPrivileges=true
TimeoutStartSec=6h
===== restic-system.timer =====
[Unit]
Description=Schedule restic backup (system)
[Timer]
OnCalendar=*-*-* 03:15:00
Persistent=true
RandomizedDelaySec=15min
[Install]
WantedBy=timers.target
===== restic-system.env.example =====
# /etc/restic/restic-system.env (chmod 600, owned by root). Never commit this file.
RESTIC_REPOSITORY=/srv/restic
RESTIC_PASSWORD_FILE=/etc/restic/restic-system.password
===== restic-system.excludes =====
docker/overlay2
/var/cache
/var/tmp
/tmp
**/node_modules
**/.cache
**/__pycache__
*.swp
Next steps (run them yourself after reviewing the files):
sudo apt install restic
sudo install -d -m 700 /etc/restic
sudo install -m 700 restic-system.sh /etc/restic/
sudo install -m 600 restic-system.excludes /etc/restic/
sudo install -m 600 restic-system.env.example /etc/restic/restic-system.env # then fill in credentials
sudo sh -c 'umask 077; openssl rand -base64 32 > /etc/restic/restic-system.password'
# Store a copy of the password OFF this server (password manager). Lost password = lost backups.
sudo sh -c 'set -a; . /etc/restic/restic-system.env; restic init'
sudo install -m 644 restic-system.service restic-system.timer /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl start restic-system.service && journalctl -u restic-system.service -n 50
sudo systemctl enable --now restic-system.timer && systemctl list-timers 'restic-*'
Then do a restore drill (see references/restore-drill.md).
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Plan and generate encrypted, off-site VPS backups with restic (S3, Backblaze B2, SFTP, or any rclone remote) - what to back up, consistent MySQL/PostgreSQL dumps, retention, a systemd service and timer, monitoring - and walk through a restore drill so the backup is proven to work.
Who it's for
Use when the user asks to set up, automate, schedule or fix server backups, back up a VPS, database, Docker volumes or WordPress site, choose between restic and rclone, or test that backups can be restored.
What's inside
- Tested, offline Python script(s): make_restic_units.py (deterministic results, standard library only unless noted)
- Reference guides: restore-drill.md, destinations.md, monitoring.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; Retention defaults
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/vps-devops-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+