Velero
Learn how to configure Velero for use with Filebase.

What is Velero?

Velero is an open source backup and disaster recovery command line tool for Kubernetes clusters and their volume data.
Read below to learn how to use Velero with Filebase.

Prerequisites:

  • Download Velero.
  • Have a Kubernetes cluster installed and running in your local environment.
  • Have your Filebase Access and Secret Keys. Learn how to view your access keys here.
  • Create a Filebase Bucket. Learn how to create a bucket here.
This guide was tested and written using Ubuntu 20.04.

1. Create a velero_credentials file in your Velero download directory. In the file, enter the following information:

[default]
aws_access_key_id = filebase-access-key
aws_secret_access_key = filebase-secret-key
Replace the following values to reflect your configuration:
  • aws_access_key_id: Filebase Access Key
  • aws_secret_access_key: Filebase Secret Key

2. Install Velero with the following command:

velero install \
--provider aws \
--bucket filebase-sample-bucket \
--secret-file /path/to/velero-credentials \
--use-volume-snapshots=false \
--plugins velero/velero-plugin-for-aws:v1.4.0 \
--backup-location-config region=us-east-1,s3ForcePathStyle="true", s3Url=s3.filebase.com
Replace the following values to reflect your configuration:
  • bucket: Your Filebase Bucket Name
  • secret-file: Path to your velero-credentials file.
Velero is installed in the velero namespace by default. Please see the Velero documentation here for installing in different namespaces.

3. Configure a backup schedule.

This example creates a daily backup. Replace ‘Schedule Name’ with your preferred value.
velero schedule create --schedule "0 7 * * *"

4. Restore from a backup.

Replace ‘Schedule Name’ with the name you gave your schedule when you created it and ‘Timestamp’ with the time stamp of the backup.
velero restore create --from-backup <SCHEDULE_NAME>-<TIMESTAMP>
If you have any questions, please join our Discord server, or send us an email at [email protected]