Commit graph

30 commits

Author SHA1 Message Date
Régis Hanol
bb0baa6d7c BUGFIX: properly reconnect to the current db after forking 2014-04-07 19:38:47 +02:00
Régis Hanol
d23585e444 BUGFIX: backup/restore operations keep track of the read-only mode status 2014-03-28 12:15:53 +01:00
Régis Hanol
0def4747da FEATURE: send the backup/restore logs when operation fails 2014-03-24 19:34:16 +01:00
Robin Ward
c1b4f5b80b FIX: sed on OSX sucks and doesn't work with the same commands as on
most Linux machines. This regexp is compatible with both.
2014-03-21 11:57:33 -04:00
Régis Hanol
dbe72fe26d FEATURE: minimize duration of read-only mode when backing up 2014-03-14 15:53:58 +01:00
Régis Hanol
ea953c9c0e BUGFIX: only wait for jobs of the current_site when backing up 2014-03-14 15:49:35 +01:00
Robin Ward
085f7997a2 FEATURE: Upload backups to S3 when complete. 2014-03-12 16:24:45 -04:00
Robin Ward
dc1d6decf5 Support for removal of old backups automatically via a site setting 2014-03-12 12:24:35 -04:00
Régis Hanol
8c89931747 do not log sensitive commands during backup/restore 2014-03-12 11:45:55 +01:00
Régis Hanol
9eb3958374 FEATURE: gzip backups using best compression 2014-03-11 12:47:51 +01:00
riking
01826b9c18 Add site name to beginning of backup filename 2014-03-06 16:34:31 -08:00
Régis Hanol
32e3058f16 BUGFIX: force tar to follow symlinks during the export 2014-02-25 19:23:37 +01:00
Régis Hanol
1f90f3044f BUGFIX: restore wasn't working when not using multisite in production 2014-02-20 18:42:17 +01:00
Régis Hanol
27f3aa6bdc BUGFIX: actually use db_conf everywhere 2014-02-19 15:43:59 +01:00
Régis Hanol
438f97d8b0 BUGFIX: backup/restore rake tasks weren't working 2014-02-19 15:25:31 +01:00
Régis Hanol
f81680d5c7 BUFGIX: we should have uploads in the backup 2014-02-17 19:58:50 +01:00
Régis Hanol
6f6a8c3f1b dump only the public schema when backing up the db 2014-02-17 19:14:57 +01:00
Sam
0438abf139 BUGFIX: Use ENV["USER"] before falling back to postgres 2014-02-17 10:44:37 +11:00
Régis Hanol
29b6b71d61 don't pass arguments when they're empty to pg_sql/pg_dump 2014-02-14 02:58:36 +01:00
Régis Hanol
b89d328de2 display/preload the logs of the last/current operation 2014-02-13 13:31:14 -08:00
Régis Hanol
62f98993cd fix pg_dump syntax to exclude schemes 2014-02-13 13:31:14 -08:00
Régis Hanol
aff3463957 we want to wait for workers and not enqueued jobs 2014-02-13 13:31:13 -08:00
Régis Hanol
79a40658bf new backup & restore code 2014-02-13 13:31:13 -08:00
Régis Hanol
8344f0d8fd remove old import/export code 2014-02-13 13:31:13 -08:00
Sam
cce5fb3303 BUGFIXES: improved performance of import an export
we no longer generate the entire dump in memory, instead we generate one table at a time
added some basic progress
2014-01-29 16:49:01 +11:00
Neil Lalonde
fe660ba52b FIX: in Rails 4, ActiveRecord::Base.descendants includes ActiveRecord::SchemaMigration for some reason. Exclude it from export. 2013-11-11 10:49:27 -05:00
Ryland Herrick and Vipul A M
591a5c0e13 Refactor temp directory methods into helper module 2013-07-09 13:59:31 -05:00
Jon Roes
abfcb93904 use oj for json encoding 2013-04-26 21:45:53 -04:00
Régis Hanol
239cbd2d58 enforce coding convention
replaced every `and` by `&&` and every `or` by `||`
2013-03-05 01:42:44 +01:00
Robin Ward
21b5628528 Initial release of Discourse 2013-02-05 14:16:51 -05:00