1.1.6 • Published 6 years ago
adonis-backup v1.1.6
adonis-backup
by: Hussein Elturkey
installing
a package to backup your app contents in one file and backup it to s3 drive.
it is recommended to install it using at first time:
adonis install adonis-backupto save time and get config file directly.
Registering provider
Make sure to register the provider and make all of the following necessary changes inside the start/app.js file!
// ...
// Add the command provider
const aceProviders = [
// ...
'adonis-backup/providers/BackupProvider',
]Config
Please update configuration before use. The configuration file is config/backup.js.
use:
adonis backup:startcloud only backup:
adonis backup:start --cloudOnlylocal only backup:
adonis backup:start --localOnlyrestore backup: (not working yet, will be next update.)
adonis backup:start --restorefor using digitalocean spaces or aws, just add s3 drive in config/drive.js
help and flags:
adonis backup:start --hlepNote:
for using digitalocean spaces or aws, just add s3 drive in config/drive.js. then add s3 in config/backup.js
*/
for example disks: ['local', 's3]
*/
destination: {
filename_prefix: 'backup_',
disks: ['local']
},location
backup will be store in tmp/backup directory.