VolSync
Adding Credentials
Section titled “Adding Credentials”You can add the credentials by copy-pasting the Full Examples section in the common-docs and adapting those accordingly
PVC Backups
Section titled “PVC Backups”PVC data can be easily backed up to S3 storage by using our integrated VolSync support. For each individual app, the VolSync Destination (Restore)
option must set on creation of the app by doing the following:
-
Add
VolSync
to each persistence object you want synced as below -
Add the name you gave to the S3 credentials earlier, under the
credentials
section of VolumeSnapshots -
Enable the
VolSync Source (Backup)
and/orVolSync Destination (Restore)
options as desired -
Confirm the data is being sent to your S3 host after ~5 minutes
It will look something like this for each of your persistence:
persistence: config: volsync: - name: config type: restic credentials: mys3_credentials dest: enabled: true src: enabled: true
PVC Restoration
Section titled “PVC Restoration”PVC data restoration will happen automatically before the app starts. Please be aware this can take a while depending on the size of the backup, your connection speed, etc.
Total System Restore and Migration to New System
Section titled “Total System Restore and Migration to New System”When on a completely new system, you can easily restore using the above steps with the following caveats:
- On a non-SCALE system, the PVC backend needs to support snapshots
- The apps need to be called exactly the same as they were before, preferably using a previously-exported config
- If you’ve any non-PVC storage attached, be sure that this is still available or apps won’t start until this is resolved
Advanced Configurations
Section titled “Advanced Configurations”This section shows some more-advanced configurations which may be useful in some situations
Using a Custom Certificate Authority
Section titled “Using a Custom Certificate Authority”If your S3 storage target is using a self-signed certificate, you can provide Volsync with a certificate to use when performing TLS validation.
To do so, simply set the customCA
OR
customCASecretRef
keys in your credentials.$name
.