Migrate from windows to linux

Hey everyone,
why it is not possible to migrate from windows to linux with a backup file?
I get the back slash error, I have used the winrar to fix it (it was in another topic), but it did not worked.
I really want to move to linux due to windows not that reliable.

thanks for the anwsers!

First I’m pretty sure that you don’t need winrar to fix file paths in configuration files.
Second as long as there are full paths this would include C:\ (or other drive letters) which doesn’t exist in any commonly used GNU/Linux file system. So maybe it’ll not suffice to change every \ to /.

But Third I’m not aware of much settings which include windows paths at all.

It should not be to complex to migrate from windows to GNU/Linux if the backup was created with the correct tool.
Be aware that most of the files are not needed if you 're migrating, you’ll only need files from $OPENHAB_CONF and $OPENHAB_USERDATA and even this folder includes many files which don’t need to be migrated.
Configuration through textfiles: $OPENHAB_CONF
Configuration through UI: $OPENHAB_USERDATA/jsondb/ (without the backups folder)
Persistence: $OPENHAB_USERDATA/persistence/
myOpenHAB key: $OPENHAB_USERDATA/secrets/
So more or less you’ll have to copy the data into the new locations, then do a

sudo openhab-cli reset-ownership

then start the service:

sudo systemctl start openhab.service

After the big blue screen of death IT global failure recently I wouldn’t run anything on windows. :grinning: Not that I do anyway.

Good luck. It shouldn’t be too hard to swap over. It’s just a few files.

1 Like

I do hope you realize it could have just as easily been crowdstrike blocking access to the root folder of Linux servers as it was todays crowdstrike whitelist typo blocking access to windows system files.
Not that I am a windows fanboy or such just want to be clear that it was a 3rd party threat prevention software that triggered todays events impacting windows OS’s. And yes the crowdstrike application runs as a elevated account in both windows and linux OS.

That’s ok. I don’t trust the cloud as well. :grinning:
If it breaks it will be something I have done.
I try to test it first before upgrading.

I used to work in the corporate with world in IT years ago and know what happens when things go wrong. It’s not a not place to be. I would not like to be at croudstrike yesterday.

Yep today was a sucky day at my corporate land of opportunity as we remediated 1000+ servers and workstations that got impacted, And I agree with you never put anything up in the clouds you do not want the whole world to see.
The sad part is now days the idea of testing before a release is considered just as high a risk as trusting that the software vendor tested correctly before they release their signature files due to the increased number of day 0 threats that we spend our time blocking. I also would not want to have been an employee of crowdstrike company today for sure. Heck it was bad enough at my job watching all the SLT folks freaking out in a panic as we went through the motions of fixing this human error!

Hey
Can you tell me which data doesnt need to be copied ?

Well, it depends :slight_smile:
C:\openHAB\conf\ : If you did not change any file here, you don’t need to copy any file.
C:\openHAB\addons\ : If you did not install any addon manually (i.e. copy a *.jar to this folder) you don’t need to copy any file.
C:\openHAB\userdata\etc\ : If you did not configure things like loggers, most likely you don’t need to copy any file.
C:\openHAB\userdata\jsondb\ : copy all files, but not the .\backups\ folder.
C:\openHAB\userdata\persistence\ : copy all files.
C:\openHAB\userdata\secrets\ : copy all files.