by: Hussein Elturkey
it is recommended to install it using at first time:
adonis install adonis-backup
to save time and get config file directly.
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',
]
Please update configuration before use. The configuration file is config/backup.js
.
adonis backup:start
adonis backup:start --cloudOnly
adonis backup:start --localOnly
adonis backup:start --restore
for using digitalocean spaces or aws, just add s3 drive in config/drive.js
adonis backup:start --hlep
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']
},
backup will be store in tmp/backup directory.