https://bugs.kde.org/show_bug.cgi?id=510961
--- Comment #3 from Paul Wise <[email protected]> --- Created attachment 186377 --> https://bugs.kde.org/attachment.cgi?id=186377&action=edit Python script to sync the Klipper database to filesystem xattrs Recompiling plasma-workspace takes too long on my old machine, so it is hard to work on this. So I came up with a workaround, I'm mentioning it here in case anyone else wants a workaround for this too. First sync the database to xattrs using the attached script (so that all the metadata is retained outside the database, which is maintained by Klipper), then use rsync without any delete option to keep a copy of the files, then automatically run those steps hourly using cron or systemd timers: rsync -aSHAX ~/.local/share/klipper/ ~/backup/klipper/ In the process of writing the script I came across a few entries that didn't have corresponding files, but couldn't find anywhere in the plasma-workspace klipper code that would have excluded them. The script handles that case by creating new dirs, and creating new files copying the text column from the main table of the database. I don't have anything to search the old data yet, I expect I will just use grep for now. -- You are receiving this mail because: You are watching all bug changes.
