Application Backups

Warning: This is the documentation of a beta version of LinkAce. Things may break. Only use this version for tests.

LinkAce provides an easy way to back up the whole application including the database to the local filesystem, or any S3-compatible service, including Amazon AWS S3, Minio or Backblase B2. Under the hood LinkAce uses the Spatie Backup package. Please consult the documentation of the package for advanced configuration.

By default, the backup system will periodically purge old backups. For more details, read the default configuration.

Configure the backups

To back up LinkAce to S3, add the following settings to your .env file:

.env setting Possible values Default value Description
BACKUP_ENABLED true, false false Set to true to enable the application backups
BACKUP_DISK local_backups, s3 s3 The storage for backups: local_backups saves the files to /storage/app/backups, s3 saves to your configured S3 storage
BACKUP_NOTIFICATION_EMAIL any email address [email protected] Set a valid email address to receive notification about backups.
BACKUP_MAX_SIZE any number 512 The maximum size of all backups in MB. Once reached the oldest backups will be deleted.

if you want to use AWS S3 for backups, define the key ID, the access key, the region and your bucket name here. any S3

AWS_ACCESS_KEY_ID=ZG25U...
AWS_SECRET_ACCESS_KEY=V8pu...
AWS_DEFAULT_REGION=eu-central-1
AWS_BUCKET=linkace

Using a third-party S3-compatible service

Instead of Amazon AWS S3, you can use any S3-compatible service. To connect to the service instead of AWS, you have to set the correct endpoint in your .env file. Near your other AWS_ settings, add the following line and replace the URL with your own service URL:

AWS_ENDPOINT=https://minio.example.com