Girish Ramakrishnan
20a75b7819
tag -> prefix
2017-01-05 23:20:02 -08:00
Girish Ramakrishnan
967bab678d
Fix listing of app backups
...
The id can now contain path and not just the filename
2017-01-05 01:03:44 -08:00
Girish Ramakrishnan
135c296ac7
Remove the Z suffix
2017-01-05 00:12:31 -08:00
Girish Ramakrishnan
e83ee48ed5
Pass collation tag to backup functions
...
Fixes #159
2017-01-05 00:10:16 -08:00
Girish Ramakrishnan
1539fe0906
preserve msecs portion in backup file format
...
this is required because the second precision causes backups to fail
because of duplicate file name. this happens in tests.
part of #159
2017-01-04 21:57:03 -08:00
Girish Ramakrishnan
ceb78f21bb
remove redundant reuseOldAppBackup
2017-01-04 21:20:36 -08:00
Girish Ramakrishnan
794efb5ef5
Merge backupDone webhook into caas storage backend
2017-01-04 16:29:25 -08:00
Girish Ramakrishnan
2b27e554fd
Change backup filenames
...
appbackup_%s_%s-v%s.tar.gz -> app_%s_%s_v%s.tar.gz
drop 'backup'. rationale: it is known these files are backups
timestamp has '-'. rationale: colon in filename confuses tools like scp (they think it is a hostname)
backup_%s-v%s.tar.gz -> box_%s_v%s.tar.gz
drop 'backup' and name it 'box'. this makes it clear it related to the box backup
timestamp has '-'. rationale: colon in filename confuses tools like scp (they think it is a hostname)
Part of #159
2017-01-04 13:36:25 -08:00
Girish Ramakrishnan
e547a719f6
remove dead code
2017-01-04 13:35:39 -08:00
Girish Ramakrishnan
4313d8a28c
Send mail when backup fails
...
Fixes #9
2016-10-14 15:08:41 -07:00
Johannes Zellner
cac85b17bc
Add backup config test for each backend
2016-10-11 11:36:25 +02:00
Johannes Zellner
f576f38e4c
Calculate the backup checksum for client side verification
...
Fixes #54
2016-10-10 18:11:25 +02:00
Johannes Zellner
b0a8ba85e1
Also remove the db records for deleted backups
2016-10-10 16:25:43 +02:00
Johannes Zellner
1e65142f47
Use rmbackup.sh instead of fs.unlink() due to root ownership
2016-10-10 16:25:43 +02:00
Johannes Zellner
c129328828
There is no result
2016-10-10 16:25:43 +02:00
Johannes Zellner
c7e5c09bb9
Adjust removeBackup() api
2016-10-10 15:45:48 +02:00
Johannes Zellner
1b3ae1f178
Add new storage.removeBackup() api
...
This currently is only used in the filesystem backend,
but may be expanded to also cleanup S3 in the future
2016-10-10 15:45:48 +02:00
Johannes Zellner
bceeb092bf
Remove unused require
2016-10-10 14:50:53 +02:00
Johannes Zellner
629e061743
Use specific error if app backup for restore can't be found
2016-10-10 13:21:45 +02:00
Johannes Zellner
4a9a6dc232
Move backup config fetching into storage backend
2016-09-20 09:25:48 +02:00
Johannes Zellner
0bfc533e44
Fixup function naming
2016-09-20 09:25:48 +02:00
Johannes Zellner
6352064e6c
Add backup download route if backend supports it
2016-09-20 09:25:48 +02:00
Johannes Zellner
e8be76f2e8
Fixup typos
2016-09-20 09:25:48 +02:00
Johannes Zellner
02d1238853
filename is our backup id
2016-09-20 09:25:48 +02:00
Johannes Zellner
bf177473fe
Rename getBackupDetails() -> getBoxBackupDetails()
2016-09-20 09:25:48 +02:00
Johannes Zellner
2ce768e29a
Refactor getAppBackupCredentials()
2016-09-20 09:25:48 +02:00
Johannes Zellner
83ed87a8eb
Refactor getBackupCredentials()
2016-09-20 09:25:48 +02:00
Johannes Zellner
6c23bce8e8
Prepare support for provider specific backup scripts
2016-09-20 09:25:48 +02:00
Johannes Zellner
1736d50260
Add filesystem storage backend only as noop currently
2016-09-20 09:25:48 +02:00
Girish Ramakrishnan
c1bb264065
Set a timeout for superagent
...
The default is 'no timeout' and it will wait for the response forever.
https://github.com/visionmedia/superagent/issues/17#issuecomment-207742985
2016-09-12 13:06:18 -07:00
Johannes Zellner
ef200fcc85
Support s3 backup upload without session tokens
2016-06-22 10:21:56 +02:00
Girish Ramakrishnan
b3ad463470
use debug instead
2016-06-20 22:42:37 -05:00
Girish Ramakrishnan
b59739ec54
fix typo
...
this is sad. why didn't jshint catch this?
2016-06-20 21:38:39 -05:00
Girish Ramakrishnan
060d9e88ef
Pass manifest to backupApp
2016-06-14 11:32:29 -07:00
Girish Ramakrishnan
9c2d217176
fix typo
2016-06-13 23:04:43 -07:00
Girish Ramakrishnan
3197349058
Fix app backup before updates
...
we were passing the current manifest to the backup code which meant that
the app version and manifest was incorrect.
2016-06-13 21:19:29 -07:00
Girish Ramakrishnan
5f3378878e
remove lastBackupConfig
2016-06-13 19:19:28 -07:00
Girish Ramakrishnan
53cd45496b
parse the response
2016-06-13 18:28:51 -07:00
Girish Ramakrishnan
2c0eb33625
use apps.getAppConfig when generating config.json
2016-06-13 15:11:49 -07:00
Girish Ramakrishnan
8f21126697
add a way to get the restore config (config.json)
2016-06-13 15:04:27 -07:00
Girish Ramakrishnan
716d29165c
store altDomain in backupConfig
2016-06-13 13:14:04 -07:00
Girish Ramakrishnan
6be0d0814d
pass auditSource from cron.js
2016-06-02 18:51:50 -07:00
Girish Ramakrishnan
126d64ffa8
move backup event in backupBoxAndApps
...
the updater uses this code route
2016-05-03 18:36:52 -07:00
Johannes Zellner
b855dee4cb
Fix crash by providing required eventsource
2016-05-02 13:43:12 +02:00
Girish Ramakrishnan
fec388b648
move backup eventlog to model
2016-05-01 13:17:23 -07:00
Girish Ramakrishnan
20d6da8230
add debugs
2016-04-20 19:40:58 -07:00
Girish Ramakrishnan
f159cacfbb
Use same timestamp for archive and config
...
This fixes a very curious case:
1. App has backup.
2. App dies.
3. Box backs up. This make it reuse the backup. But it generates wrong config file timestamp.
4. Box cannot update anymore. This is because the backup of app fails - it tries to reuse
the backup and that fails with AccessDenied because the timestamp above is wrong!
2016-04-20 19:37:00 -07:00
Girish Ramakrishnan
3bdbcff811
add debug
2016-04-10 22:34:55 -07:00
Girish Ramakrishnan
ea3bd6d71d
remove trailing comma
2016-04-10 22:29:09 -07:00
Girish Ramakrishnan
d5cc96b1ff
clean up backups code
2016-04-10 22:24:01 -07:00