Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/cache.py
Commit message (Collapse)AuthorAgeFilesLines
* Do not cache full backup contentsArthur de Jong2015-06-301-44/+0
| | | | | | Storing this in SQLite is slow and grows the cache to a huge size. The approach of reading these files lists may be a bit slower but saves a lot of space and overhead and removes quite some complexity.
* Change metadata informationArthur de Jong2015-06-251-16/+9
| | | | | | | | | | This changes the information in the metadata dict to include the file type in a separate field and limit the mode information to standard permissions only. Upon reading files lists from the repository the old format is automatically converted. This changes local cache file to ensure all information is re-read (the previous commit also already required this).
* Ensure file lists are written in archive orderArthur de Jong2015-06-211-1/+2
| | | | | This is apparently needed because at least GNU tar expects the extractlists to be in the same order as files in the archive itself.
* Make filters context managersArthur de Jong2015-05-151-12/+9
| | | | | This ensures that open files and streams are properly closed when an exception occurs.
* Catch certain problems reading JSON filesArthur de Jong2015-05-071-3/+3
| | | | | This also replaces catches IOError by catching EnvironmentError which covers a wider range of errors.
* Check archive existance when resyncingArthur de Jong2015-05-071-1/+2
| | | | | The checks that the repository contains an archive file when resyncing the metdata cache from the repository.
* Refactor out repository and cacheArthur de Jong2015-04-101-0/+248
This moves functionality related to the metadata cache and repository files to separate modules.