Where Zunie stores your library, and how to back it up
Zunie keeps everything it knows about your collection in a single file on your computer, called the library file. Your music, videos and pictures are never copied into it: Zunie only remembers where they are.
Find your library file
- Click settings in the top navigation bar.
- In the list of categories on the left, click about.
- The DATABASE line shows the full path of the library file currently in use.
By default, on Linux, the library file is:
~/.local/share/zunie/zunie.db
On Windows, the library file is:
%LOCALAPPDATA%\zunie\zunie.db
The DATABASE line in the settings always shows the exact path.
What the library file contains
| Kept in the library file | Details |
|---|---|
| Your folders | The music, video and picture folders you added in settings > folders. |
| Your collection | Artists, albums, tracks, videos and pictures found in those folders, with their tags, durations and dimensions. |
| Your personal touches | Liked songs, videos and streams, playlists, rooms, and items pinned to the home screen. |
| Your streams | The web streams you added in the streams space, and the folders you sorted them into. |
| Your listening history | Every track, radio, stream and video you played, used by memories and by the recent plays on the home screen. |
| Your preferences | Interface language, theme, file types to detect, screenshots folder, whether memories and online artist information are shown, and other settings. |
Because preferences are stored in the library file, each library file has its own language, theme and settings.
Other files Zunie creates
Zunie keeps two kinds of files outside the library file: files that cannot be recreated, in its data folder, and files it can download or create again at any time, in a cache folder.
Data folder
The data folder holds the default library file. It is ~/.local/share/zunie/ on Linux and %LOCALAPPDATA%\zunie\ on Windows.
| Folder or file | Content | Needed in a backup? |
|---|---|---|
zunie.db |
The default library file. | Yes. |
logs/ |
Log files, useful when you report a problem. | No. |
current-db |
The path of the library file you picked with load… or new…. It only exists if you use a library file other than the default one. | No. |
Cache folder
The cache folder holds everything Zunie can download or create again:
- On Linux:
~/.cache/zunie/, orzuniein the folder set by theXDG_CACHE_HOMEenvironment variable if it is defined. - On Windows:
%LOCALAPPDATA%\Temp\zunie\.
| Folder | Content |
|---|---|
thumbs/ |
Thumbnails of your videos, in one subfolder per library file. |
artists/ |
Artist pictures and information downloaded for artist pages. |
backdrops/ |
Background images of now playing and of room slideshows, resized to your screen. |
radios/ |
The radio directory, kept for offline use. |
streams/, stream-catalogs/ |
Stream logos and catalogs. |
None of these folders is needed in a backup. You can delete the cache folder to free up space: quit Zunie first, and Zunie creates or downloads the files again when it needs them. Video thumbnails are created again at the next start.
Note
Earlier versions of Zunie kept the thumbs/ and artists/ folders next to the library file. The first time a newer version opens a library file, it moves these folders to the cache folder automatically. You do not need to do anything.
Back up your library
- Quit Zunie.
- Copy the library file (
zunie.db) to a safe place, such as an external drive.
Important
Always quit Zunie before copying the file. While Zunie is running, recent changes can still be waiting in two temporary companion files, zunie.db-wal and zunie.db-shm. If you have to copy the file while Zunie is running, copy these two files as well.
Restore a backup
- Quit Zunie.
- Copy your backup back to its original location, or anywhere you like.
- Start Zunie. If you restored the file to another location, open it with settings > about > DATABASE > load… (see How to use another library file).
Note
Zunie identifies each track by its full path on disk. Your likes, playlists and listening history stay attached to your files as long as they keep the same location. If you remove a folder from settings > folders, the tracks of that folder are removed from the library together with their history.