Backup
Currently SQL Server and backing up S3 storage is not supported.
Backups can be triggered manually by executing the following command:
php artisan backup:run
Schedule them by adding this line to your servers cron entries:
0 * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
This will check every hour if there is any task to run.
You also have to change in your .env
file:
RUN_BACKUP = true
If you installed Benotes with Docker you only have to add to your .env
file:
RUN_BACKUP = true
By default scheduled backups are created every night. If you wish to change that add the following to your .env
file:
BACKUP_INTERVAL = "0 0 */7 * *"
This would translate to a weekly backup.
If you wish to store your data with S3 compatible Object Storage (such as AWS S3, Digital Ocean Spaces, Minio, etc.), add the following to your .env
file:
BACKUP_DISK=s3
AWS_ACCESS_KEY_ID=yourKeyId
AWS_SECRET_ACCESS_KEY=yourAccessKey
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=yourCreativeBucketName
AWS_ENDPOINT=endpointUrl