S3

Go back to storing file uploads on the local filesystem.

Syntax

$ vela disable s3                   # the development database
$ vela disable s3 -t production     # a deployment

Options

  • --backups - Keep backups on the server again, rather than uploads
  • -t, --target <target> - Which copy of the app to act on, defaults to local

Credentials are kept

Only the enabled flag is changed, so the endpoint, bucket and keys stay on record and vela enable s3 does not mean typing them again.

Files in the bucket stay there

As with enabling it, nothing is moved. Anything uploaded while S3 was on remains in the bucket and will 404 once PocketBase is reading from disk again. Copy it back first if you need it:

$ rclone copy <remote>:<bucket>/ /var/lib/vela/apps/<instance>/shared/pb_data/storage/