django-dbbackup icon indicating copy to clipboard operation
django-dbbackup copied to clipboard

Exclude some media directories option

Open voronind opened this issue 10 years ago • 4 comments

It would be useful to skip some media directories from backuping. E.g. Cache directories

voronind avatar May 26 '15 09:05 voronind

That's also a great idea! :)

benjaoming avatar May 26 '15 10:05 benjaoming

We need before to list all media files via Django built-in API. And after there is fnmatch (https://docs.python.org/2/library/fnmatch.html#fnmatch.fnmatch) for match file with wildcard.

We must ensure storages are able to list all files in all directories, files' names must be an absolute path from storage's root. Maybe add a walk function to storages.

ZuluPro avatar Sep 02 '15 21:09 ZuluPro

Now DBbackup can walk through storage, excludes are coming soon !

ZuluPro avatar Aug 12 '16 22:08 ZuluPro

covered in #300

jonathan-s avatar Dec 13 '20 23:12 jonathan-s