Knowledgebase

How to Back Up and Restore Docker Volumes Safely Print

  • 0

Archive persistent database and app data stored inside Docker volumes.

Step-by-Step Instructions

  1. Use a lightweight Alpine helper container to tar the volume contents.
  2. Store the resulting .tar.gz archive in /backups.
docker run --rm -v n8n_data:/data -v /backups:/backup alpine tar czf /backup/n8n_backup.tar.gz -C /data .

Pro Tip: Automate this command nightly with cron for peace of mind.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back