/agentic-awesome-skills:odoo-backup-strategyfrom agentic-awesome-skills
Provides a complete backup and restore strategy for Odoo, covering PostgreSQL database dumps, filestore archiving, cron scheduling, cloud storage upload to S3, and step-by-step restore procedures.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A complete Odoo backup must include both the PostgreSQL database and the filestore (attachments, images). This skill covers manual and automated backup procedures, offsite storage, and the correct restore sequence to bring a down Odoo instance back online.
@odoo-backup-strategy and describe your server environment.#!/bin/bash
# backup_odoo.sh
set -euo pipefail
umask 077
# Quiesce Odoo and all writers for this whole dump+archive interval,
# or use a storage/database snapshot procedure proven consistent.
DATE=$(date +%Y%m%d_%H%M%S)
DB_NAME="odoo"
DB_USER="odoo"
FILESTORE_PATH="/var/lib/odoo/.local/share/Odoo/filestore/$DB_NAME"
BACKUP_DIR="/backups/odoo"
mkdir -p "$BACKUP_DIR"
# Step 1: Dump the database
pg_dump -U "$DB_USER" -Fc "$DB_NAME" > "$BACKUP_DIR/db_$DATE.dump"
# Step 2: Archive the filestore
tar -czf "$BACKUP_DIR/filestore_$DATE.tar.gz" -C "$FILESTORE_PATH" .
echo "✅ Backup complete: db_$DATE.dump + filestore_$DATE.tar.gz"
# Run: crontab -e
# Add this line:
0 2 * * * /opt/scripts/backup_odoo.sh >> /var/log/odoo_backup.log 2>&1
# Add to backup script after tar command:
aws s3 cp "$BACKUP_DIR/db_$DATE.dump" s3://my-odoo-backups/db/
aws s3 cp "$BACKUP_DIR/filestore_$DATE.tar.gz" s3://my-odoo-backups/filestore/
# Apply a separate retention policy only after upload verification and a
# successful restore test; do not delete the last known recoverable backup.
set -euo pipefail
umask 077
# Restore into a NEW isolated database and filestore first. Do not drop the
# production database or clear its filestore. Replace these verified paths.
RESTORE_DB="odoo_restore_test"
RESTORE_FILESTORE="/srv/odoo-restore/filestore/$RESTORE_DB"
createdb -U odoo "$RESTORE_DB" # fails safely if the target already exists
pg_restore --exit-on-error -U odoo -d "$RESTORE_DB" db_YYYYMMDD_HHMMSS.dump
mkdir "$RESTORE_FILESTORE" # parent must exist; target must be new
# Inspect archive entries first; reject absolute paths and traversal entries.
tar -tzf filestore_YYYYMMDD_HHMMSS.tar.gz
tar -xzf filestore_YYYYMMDD_HHMMSS.tar.gz -C "$RESTORE_FILESTORE"
# Set ownership for the dedicated Odoo service account before startup.
# Start an isolated Odoo instance with this DB and matching data_dir/addons;
# disable outbound email, cron, payments and external integrations.
# Verify login, recent records and attachments. Only plan production cutover
# after this succeeds and the owner approves downtime and rollback.
pg_restore --list backup.dump should parse successfully, but only a complete isolated restore and application checks establish recoverability.pg_restore --clean against a non-existent database — always create the database first.odoo-bin shell before running a restore.rsync or restic rather than full tar.gz archives.Backup archives contain sensitive records and attachments. Encrypt offsite copies, restrict credentials and access, and retain Odoo configuration, custom addons, dependency versions and encryption keys securely alongside the recovery plan. Confirm available space and alert on job failure; a database dump and live filestore archive taken at different states may be inconsistent.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krishnakanthb13/antigravity-awesome-skills --plugin agentic-awesome-skills3 plugins in 2 repositories ship this exact skill · first indexed Oct 23, 2026
2,799 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.Other plugins' skills for the same job