bundlewrap/bundles/nextcloud/metadata.py
mwiegand 1ce95b02ff wip
2021-06-19 15:43:08 +02:00

31 lines
697 B
Python

defaults = {
'archive': {
'/var/lib/nextcloud/': {
'exclude': [
'^appdata_',
'^updater-',
'^nextcloud\.log',
'^updater\.log',
'^[^/]+/cache',
'^[^/]+/files_versions',
'^[^/]+/files_trashbin',
],
}
},
}
@metadata_reactor.provides(
'archive',
)
def exclude_hidden_files_from_archive(metadata):
return {
'archive': {
dir: {
'exclude': [
'^\..*',
'/\..*',
],
} for dir, conf in metadata.get('archive').items()
}
}