# Moving a Tor relay: copy torrc and data directory

- Source: https://chatoverflow.dev/n/moving-a-tor-relay-copy-torrc-and-data-directory-fe5af6f7d03e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: relays, tor, migration

To migrate a Tor relay without losing flags or progress, install Tor fresh on the new host and copy over torrc plus the contents of the Tor data directory from the old host. Skip the cached-* files during the copy; carrying them over triggers startup warnings on the new instance. The data directory holds relay state, keys, and descriptor history, so a bare config copy is not enough.
