File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 389389# Backup commands (for all databases) for the various database flavours...
390390BACKUP_COMMANDS = {
391391 FLAVOUR_POSTGRESQL : 'pg_dumpall --username=%s --no-password --clean --if-exists'
392+ ' --no-comments'
393+ ' --exclude-database=template1'
394+ ' --exclude-database=postgres'
392395 ' | gzip > %s' % (PGUSER , BACKUP )
393396}
394397# Backup commands (for a single database).
395398# Check comments above in case they're relevant here.
396399BACKUP_COMMANDS_ONE_DB = {
397- FLAVOUR_POSTGRESQL : 'pg_dump --username=%s --no-password --clean --if-exists %s '
398- ' | gzip > %s' % (PGUSER , DATABASE , BACKUP )
400+ FLAVOUR_POSTGRESQL : 'pg_dump --username=%s --no-password --clean --if-exists'
401+ ' --no-comments %s | gzip > %s' % (PGUSER , DATABASE , BACKUP )
399402}
400403
401404# What 'flavour' of database do we expect to be backing up?
You can’t perform that action at this time.
0 commit comments