webexcess / flow-backup
An incremental & encrypted Backup Package for Neos & Flow Framework
Installs: 19
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-flow-package
Requires
- defuse/php-encryption: ~1.2
- typo3/flow: ~3.1
This package is auto-updated.
Last update: 2024-10-29 04:47:24 UTC
README
WebExcess.Flow.Backup
An incremental & encrypted Backup Package for Neos & Flow Framework
Note: This package is still experimental and not for production. I'm happy about every inputs!
Important
Test it tough! And test it on the stage of your final environment.
The backup files are encrypted. If you lose the keyfile, your backup is worthless.
Installation
composer require webexcess/flow-backup
Quick start
First, create an encryption keyfile:
./flow backup:key
Create a Backup:
./flow backup:now
List available Backups:
./flow backup:list
Restore a Backup:
./flow backup:restore
Remove all Backups:
./flow backup:clear
Neos CMS Backend Module
There is a Backend Module for Neos CMS where you have easy access to the backup functions:
https://github.com/sbruggmann/WebExcess.Neos.Backup
Configuration
If you really have to backup more than the Database and the Persistent Files, feel free to add more directories.
Settings.yaml
WebExcess:
Flow:
Backup:
HistoryLimit: 30
Folders:
Sources:
- %FLOW_PATH_DATA%Persistent/
# - %FLOW_PATH_ROOT%Configuration/
# - %FLOW_PATH_PACKAGES%Plugins/
# - %FLOW_PATH_PACKAGES%Framework/
# - %FLOW_PATH_PACKAGES%Libraries/
LocalTarget: %FLOW_PATH_DATA%Backup/
Signals Reference
- BackupStarted ()
- BackupFinished (OutputInterface $output, array $stats)
- RestoreStarted (string $versionToRestore)
- RestoreAborted (OutputInterface $output)
- RestoreFinished (OutputInterface $output, array $stats)
- BackupVersionsRemoved (OutputInterface $output, array $removedVersions)