Install from composer.
composer create-project lyrasoft/backupThen run this command to publish routes.
php windwalker pkg:install lyrasoft/backup --tag=routesThe config file is in etc/packages/backup.php
Install from composer
composer create-project lyrasoft/backupThen the installation script will ask you some questions:
Project Name: # Your Site Name, this will be the backup title
Do you want to dump Files? [y/N] # Mostly we can choose N.
Backup Root[.]: # Type the absolute or relative path to site root
Do you want to dump DB? [Y/n] # y
Host[localhost]: # DB host
DB Name: # DB name
User[root]: # DB user
Password: # DB password
Success install backup.php file.
# If you want to register to portal instantly, type "Y"
Register backup to portal? [Y/n]
Site URL: # Enter site URL, that portal can fetch backup file
Please fill XXX-XXX to Portal.
Open https://portal.simular.co/device/login from your local browser.If you want to register to portal, see Documentation
After installed, the config.php file will be generated at backup root folder, you can modify it if you want.
In windwalker, type
php windwalker backup:{command}In standalone file, use:
php backup.php {command}This command will instantly output the zip stream to terminal.
If you want to output to a file, use:
backup:run > /path/to/file.zipYou can enter your own db info:
backup:run --host=localhost --db=sakura -u=root -p {pass} > /path/to/file.zipIn windwalker, you may choose backup profile
php windwalker backup:run {profile} > /path/to/file.zipIf you want to get backup, use this command to print token string.
Register this backup script to Portal, see Documentation