Johannes Zellner
926224bd5d
Add apprestoretask.js
2017-04-20 16:10:13 +02:00
Johannes Zellner
6a5b0c194f
No more restore mapping
2017-04-20 15:37:49 +02:00
Johannes Zellner
a94d44da75
Add generic node.sh to run node apps as root and with memory limitations
2017-04-20 15:20:11 +02:00
Johannes Zellner
3cae400b63
We still want to store the restoreConfig config.json as part of the backup itself
2017-04-18 12:16:32 +02:00
Johannes Zellner
23e3b0bd91
Get the restoreConfig from the database instead of the json file
2017-04-18 12:08:26 +02:00
Johannes Zellner
7a39cdda97
Store restoreConfig on backups
2017-04-18 12:02:15 +02:00
Johannes Zellner
a21750a4c9
Fix the mysql dump commandline
2017-04-17 20:26:06 +02:00
Johannes Zellner
7b93150047
Also add intermediate removeAppRestoreConfig() api
2017-04-17 20:26:06 +02:00
Johannes Zellner
ff3a748398
Call backuptask.js directly as root to avoid trampoline shell scripts
2017-04-17 20:26:05 +02:00
Johannes Zellner
e021a4b377
Remove unused restoreapp.sh
2017-04-17 20:26:05 +02:00
Johannes Zellner
3879b55642
Also copy the app restore config file
2017-04-17 20:26:05 +02:00
Johannes Zellner
5e1ad4ad93
We need root access to copy backup files with the filesystem backend
2017-04-17 20:26:05 +02:00
Johannes Zellner
7fdf491815
Add backuptask.js to work with new storage interface
2017-04-17 20:09:02 +02:00
Johannes Zellner
602f8bcd04
Split platform and app data folders and get rid of btrfs volumes
2017-04-04 12:34:55 +02:00
Girish Ramakrishnan
895f5f7398
Expand backup error in the mail
2017-01-26 13:03:36 -08:00
Girish Ramakrishnan
3e21b6cad3
Add ensureBackup log
2017-01-26 12:47:23 -08:00
Johannes Zellner
5219eff190
Remove 'app at' for app backup message
2017-01-12 16:00:57 +01:00
Johannes Zellner
d98f64094e
Set the correct progress percentage
2017-01-12 16:00:56 +01:00
Johannes Zellner
1c9f2495e3
Show the detailed backup progress during update
...
Fixes #157
2017-01-12 16:00:34 +01:00
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