[ckan-changes] commit/ckanext-dgu: dread: #1150 Rename dump file.
Bitbucket
commits-noreply at bitbucket.org
Wed Jun 22 10:26:12 UTC 2011
1 new changeset in ckanext-dgu:
http://bitbucket.org/okfn/ckanext-dgu/changeset/fd886b5943b7/
changeset: fd886b5943b7
user: dread
date: 2011-06-22 12:25:48
summary: #1150 Rename dump file.
affected #: 1 file (149 bytes)
--- a/ckanext/dgu/bin/gov_daily.py Tue Jun 21 12:57:32 2011 +0100
+++ b/ckanext/dgu/bin/gov_daily.py Wed Jun 22 11:25:48 2011 +0100
@@ -57,10 +57,13 @@
dump_dir = os.path.expanduser(config.get('ckan.dump_dir', '~/dump'))
ckan_instance_name = re.sub(r'[^\w.-]|https?', '',
config.get('ckan.site_url', 'dgu'))
- dump_filebase = ckan_instance_name + '-%Y-%m-%d'
+ dump_filebase = config.get('ckan.dump_filename_base',
+ 'data.gov.uk-ckan-meta-data-%Y-%m-%d')
tmp_filepath = config.get('ckan.temp_filepath', '/tmp/dump.tmp')
backup_dir = os.path.expanduser(config.get('ckan.backup_dir', '~/backup'))
- backup_filebase = ckan_instance_name + '.%Y-%m-%d.pg_dump'
+ backup_filebase = dump_filebase = config.get(
+ 'ckan.backup_filename_base',
+ ckan_instance_name + '.%Y-%m-%d.pg_dump')
logging.basicConfig(filename=log_filepath, level=logging.INFO)
logging.info('----------------------------')
Repository URL: https://bitbucket.org/okfn/ckanext-dgu/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list