FerryDocs

Move a server to another data directory

Stop ferryd, move the full directory, then start ferryd with the new path and the same prefix.

Edit on GitHub
movesame identityOld directoryinstance_idNew directoryMarker volumeferry-owner

The marker volume of the prefix records the identity of the server.

1 / 3

This procedure moves the on the same machine.

Stop ferryd

Move the directory

Move or copy the full directory. Keep its permissions: mode 0700, and the owner is the user that runs ferryd.

Start ferryd

Start ferryd with the new --data-dir and the same --name-prefix.

If the server refuses the prefix

The cause: the file did not move. For example, you restored only ferry.db. Start the server one time with --take-over. The server replaces the marker with its own identity.

Never use --take-over for a second server

Do not use --take-over to start a second server on a prefix that another server uses. The new server removes the containers of the other server as orphans.

On this page