mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Merge branch 'master' into dashboard3
* master: Backing up postgres version
This commit is contained in:
commit
d1e9f6764f
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ db_name = 'newsblur'
|
|||
db_pass = settings.DATABASES['default']['PASSWORD']
|
||||
os.environ['PGPASSWORD'] = db_pass
|
||||
filename = 'backup_postgresql_%s.sql.gz' % time.strftime('%Y-%m-%d-%H-%M')
|
||||
cmd = '/usr/lib/postgresql/9.4/bin/pg_dump -U newsblur -h 127.0.0.1 -Fc %s > %s' % (db_name, filename)
|
||||
cmd = '/usr/lib/postgresql/13/bin/pg_dump -U newsblur -h 127.0.0.1 -Fc %s > %s' % (db_name, filename)
|
||||
print('Backing up PostgreSQL: %s' % cmd)
|
||||
os.system(cmd)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue