Hi! So, I recently migrated from Fedora 40 to Fedora 41. I synced right before my fresh install of F41; however, I ran into trouble getting my history back with sync after logging in on F41. Luckily, I had backups of my .zsh_history and did a restore using the import command.
Unfortunately, it wasn’t until after doing the import that I found the fix for the sync command. After fixing things, I ran a sync, and now I’m wondering if doing an import and then a sync had any drawbacks.
If it does, Is there a way to throw my local state away and re-sync?
Would you be able to share a little more about this please?
If a sync never completed after importing, then you’re OK to delete all local Atuin data and re-sync. If it did complete, then you’ll have duplicate data synced up to your account.
There’s not really much of an issue there, as we dedupe search results while querying - though it might throw off your stats for a little while.
Unfortunately .zsh_history doesn’t usually contain sufficient context for us to effectively de-duplicate, so subsequent atuin import commands lead to the same commands being imported multiple times.