# نمونه‌اجرای واقعی پشتیبان‌گیری و بازیابی با n8n 2.44.4 (نصب npm، SQLite)، 2026-10-21. داده ساختگی؛ Credential تنها، توکن آزمایشی API برگ سبز است. # در Docker همین فرمان‌ها با پیشوند docker compose exec -u node n8n اجرا می‌شوند. $ n8n export:workflow --backup --output=backups/latest/workflows/ files: 5 $ n8n export:credentials --all --separate --output=backups/latest/credentials/ files: 1 $ grep -c "local-demo-token" backups/latest/credentials/*.json # encrypted export: the demo token must not appear 0 # restore into a fresh n8n with the SAME encryption key $ n8n import:workflow --separate --input=backups/latest/workflows/ Importing 5 workflows... Successfully imported 5 workflows. $ n8n import:credentials --separate --input=backups/latest/credentials/ Successfully imported 1 credential. $ n8n export:credentials --all --decrypted --output=check.json # only to prove the key works; delete the file at once Legacy aes-256-cbc encryption key not found; falling back to instance key Successfully exported 1 credentials. credential data readable: True # restore into a fresh n8n with a DIFFERENT encryption key $ n8n import:credentials --separate --input=backups/latest/credentials/ Successfully imported 1 credential. $ n8n export:credentials --all --decrypted --output=check.json Error exporting credentials. See log messages for details. Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data. Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.