Migrating Coder-OSS data to a new server

Is it possible to transfer data from an old Coder-OSS server containing live workspaces to a new one without having to manually dump the database from the old server, copy the /var/lib/docker and sync them through rsync? This process is usually very slow and inconvenient, and it is further complicated by the fact that my old server is running on Hyper-V while the new server is running TrueNAS, which are incompatible with each other.
Solution:
If your workspaces are ephemeral , just stop all workspaces and moving the postgres databse should be enough
Jump to solution
3 Replies
Codercord
Codercord7mo ago
<#1235969422775160872>
Category
Other
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Solution
Atif
Atif7mo ago
If your workspaces are ephemeral , just stop all workspaces and moving the postgres databse should be enough
Atif
Atif7mo ago
If you want to move the workspace states including the storage volumes you need to copy the /var/lib/docker too
Want results from more Discord servers?
Add your server