mark cache directories like Thumbnails for backup exclusion
#1
there exists a proposed way of tagging cache directories in order to exclude them from backups by placing a file with a particular name and content (CACHEDIR.TAG) in the directory to be excluded; http://www.brynosaurus.com/cachedir/spec.html provides details and general rationale. the specification is recognized by all backup programs that invoke gnu tar, as well as rsync, attic, and several others.

it appears to me that ~/.kodi/userdata/Thumbnails qualifies for that exclusion, as the thumbnails are collected automatically. that directory amounts to about 200MB on my box (about than 90% of the .kodi directory), and backing it up seems not to give any obvious benefit.

please consider generating an appropriately populated CACHEDIR.TAG file in all directories in kodi's user data that are safe to be dropped when restoring a backup.
Reply
#2
(2016-10-25, 14:31)chrysn Wrote: there exists a proposed way of tagging cache directories in order to exclude them from backups by placing a file with a particular name and content (CACHEDIR.TAG) in the directory to be excluded; http://www.brynosaurus.com/cachedir/spec.html provides details and general rationale. the specification is recognized by all backup programs that invoke gnu tar, as well as rsync, attic, and several others.

it appears to me that ~/.kodi/userdata/Thumbnails qualifies for that exclusion, as the thumbnails are collected automatically. that directory amounts to about 200MB on my box (about than 90% of the .kodi directory), and backing it up seems not to give any obvious benefit.

please consider generating an appropriately populated CACHEDIR.TAG file in all directories in kodi's user data that are safe to be dropped when restoring a backup.
What method are you using for backup?
Reply
#3
i'm using borg backup <https://www.borgbackup.org/>. while that does have options to name folders to be excluded from backup (like every other backup program), i wouldn't consider listing cache directories of all used programs individually a user friendly solution; that's what the cachedir.tag mechanism is intended for.
Reply

Logout Mark Read Team Forum Stats Members Help
mark cache directories like Thumbnails for backup exclusion0