Open Dashboy1998 opened 5 months ago
Thanks for opening this issue! Currently, there isn't a clean way of doing this (though this is a great feature request that I will work on!). But if you're up for a hacky way of doing this, you should be able to:
~/.hishtory/
directory to somewhere safe, this contains everything you need.hishtory.db*
star files that are in your backed up ~/.hishtory/
folder. hishtory reupload
to re-upload all of the entries that are now in the DBI think this should work. And if it doesn't work for some reason, you can always just restore the entire ~/.hishtory/
directory which will definitely work to serve as a backup.
Is there some reason you couldn't do a hishtory export, reinstall with sync and then do an import from the cli?
I am currently using hishtory with a local file.
I have a hishtory server setup, the linuxserver.io image. But I'm not sure how to sync my current history with the server.
It appears running
hishtory init ${SECRET_KEY}
will erase my current history.