# migrating aarch64 install to x86

**URL:** https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098
**Category:** Support
**Created:** [May 31, 2020, 3:07pm UTC](https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098 "2020-05-31T15:07:42Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![syn\_a\_name](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@syn\_a\_name](https://forum.syncthing.net/u/syn_a_name)
#### Post date: [May 31, 2020, 3:07pm UTC](https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098/1 "2020-05-31T15:07:42Z")

</div>

So I’m thinking to migrate a central Syncthing server on a aarch64 SBC to a new, stronger x86-based server. Ideally I would like to do that transparently for the peers, the new box will receive the same IP.

Question is, can I just copy the whole files from data folders and Syncthing config folder over to the new box and it will “just work” (assuming paths stay the same), or do I have to take care of something?

Bonus question: to my understanding my own, local device ID is stored in the 4 \*.pem files and the config.xml file stores all the remote peer IDs. So in fact pem and xml files are not linked, I could swap the \*.pem files and the node would have a new ID (a problem for the peers, of course), but my local install would work fine - correct?

Thank you!

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [May 31, 2020, 3:12pm UTC](https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098/2 "2020-05-31T15:12:46Z")

</div>

> [@syn\_a\_name](#):
>
> Question is, can I just copy the whole files from data folders and Syncthing config folder over to the new box and it will “just work” (assuming paths stay the same), or do I have to take care of something?

If everything relevant is the same (data, paths, mtimes, permissions if not ignored) that works.

> [@syn\_a\_name](#):
>
> Bonus question: to my understanding my own, local device ID is stored in the 4 \*.pem files and the config.xml file stores all the remote peer IDs. So in fact pem and xml files are not linked, I could swap the \*.pem files and the node would have a new ID (a problem for the peers, of course), but my local install would work fine - correct?

Only 2 pems. The https ones are just for the web UI. Other than that all correct. Except one thing (might be wrong though and it gets cleaned up somehow): The own device id is also added to config. So you probably end up with the old id as a “remote device” when swapping the pems.

---

<div class="post-metadata">

### Author: ![syn\_a\_name](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@syn\_a\_name](https://forum.syncthing.net/u/syn_a_name)
#### Post date: [May 31, 2020, 3:41pm UTC](https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098/3 "2020-05-31T15:41:08Z")

</div>

Thank you for confirmation - I feared Syncthing might use some non-portable info like inode number per file to detect changes as some backup tools do for performance optimization.

You are also right on the second point, in config.xml is a device entry for the local device with its ID. Probably all devices in config.xml are compared to the ID from \*.pem and if one matches it is assumed that’s the local one. Simple and robust strategy. And if none matches, an entry is autogenerated? - would need to be tested but would also make sense.

Thank you!

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [May 31, 2020, 3:47pm UTC](https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098/4 "2020-05-31T15:47:29Z")

</div>

> [@syn\_a\_name](#):
>
> And if none matches, an entry is autogenerated? -

That definitely happens.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [June 30, 2020, 3:47pm UTC](https://forum.syncthing.net/t/migrating-aarch64-install-to-x86/15098/5 "2020-06-30T15:47:30Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
