/usr/local/bin/custoscp under systemd. Release notes
state whether a release includes database migrations. Use the matching procedure
below. For an ARM64 server, replace amd64 with arm64.
Upgrade without migrations
Download the latest binary, keep the installed binary as a quick rollback, replace it, and restart the service:Upgrade with migrations
Download the latest binary, stop the service, run the migrations embedded in the new binary, install it, and start the service:Roll back the binary
custoscp.previous is kept deliberately — do not clean it up. Each upgrade
overwrites it with the version you are replacing, so it never accumulates and is
always exactly one release behind. The daemon keeps custosd.prev the same way.
Rolling back the binary does not reverse a migration. Follow the release notes
if a migrated release needs to be rolled back.