Johannes Zellner
5b9d4daafe
Add first backup cleanup tests
2017-04-24 12:34:57 +02:00
Johannes Zellner
410420e9d5
Ensure we keep at least one backup on cleanup
...
If for some reason backups fail for longer than the retention time
we should at least keep the latest around
2017-04-24 12:01:52 +02:00
Johannes Zellner
ca7f80414e
WIP
2017-04-24 11:41:45 +02:00
Girish Ramakrishnan
81b705b25b
give inner callback variable a different name
2017-04-23 22:51:07 -07:00
Girish Ramakrishnan
11c7ba1957
Say why filesystem is not recommended
2017-04-23 22:36:45 -07:00
Girish Ramakrishnan
f79e1993cb
use debug() more
2017-04-23 22:10:44 -07:00
Girish Ramakrishnan
fe71dc22fc
add note on lastBackupId
2017-04-23 22:00:17 -07:00
Girish Ramakrishnan
e3c72fa6ce
remove src/ prefix in debug tags
2017-04-23 21:53:59 -07:00
Girish Ramakrishnan
27a542daec
Do not show support tab for non-admins
...
Fixes #313
2017-04-23 21:25:14 -07:00
Girish Ramakrishnan
aeba8e8fd2
Use retentionSecs to cleanup backups
...
Part of #310
2017-04-23 19:34:00 -07:00
Girish Ramakrishnan
a0e122e578
Try to make tests work again
2017-04-23 18:03:40 -07:00
Girish Ramakrishnan
29ae2cf8ca
Allow setting retentionSecs in backendConfig
...
Part of #310
2017-04-22 23:25:57 -07:00
Girish Ramakrishnan
abe72442ae
Set default retentionSecs
...
Set to 2 days for filesystem provider and -1 (never) for s3/minio.
Part of #310
2017-04-22 21:46:26 -07:00
Girish Ramakrishnan
8e134f3ae8
make docker install script more robust
2017-04-22 19:22:01 -07:00
Girish Ramakrishnan
70042021aa
caas: make migrate not send the restoreKey like upgrade
2017-04-22 18:28:58 -07:00
Girish Ramakrishnan
6cc708136e
caas expects filename for migrations
2017-04-22 18:17:44 -07:00
Girish Ramakrishnan
00ac78c839
backup ui: clear form if selector changes
2017-04-22 14:14:21 -07:00
Girish Ramakrishnan
6f0c271e6e
Make URL the first field for minio
2017-04-22 13:47:44 -07:00
Girish Ramakrishnan
ef3a125ce4
Move the info button
2017-04-22 13:36:28 -07:00
Girish Ramakrishnan
d91e8bb87b
add minio as a separate backend
...
Fixes #308
2017-04-22 13:34:43 -07:00
Johannes Zellner
a7d7935451
Remove backup download code
2017-04-22 22:17:29 +02:00
Girish Ramakrishnan
8c011ea9b0
setup: do not dump sensitive fields in args
2017-04-22 11:57:00 -07:00
Girish Ramakrishnan
c41b2c32f5
Fix debug
2017-04-22 11:50:12 -07:00
Girish Ramakrishnan
1e90ec95d3
Add -y flag to apt install
2017-04-22 10:23:48 -07:00
Girish Ramakrishnan
1cca0aee6e
refactor targz logic into separate file
2017-04-21 15:45:45 -07:00
Girish Ramakrishnan
be73ec4b66
Add oldFormat support to caas and s3 backends
2017-04-21 15:06:54 -07:00
Girish Ramakrishnan
6c8b9b8799
Propagate error messages from backuptask into box code
2017-04-21 14:26:34 -07:00
Girish Ramakrishnan
0aea7cc347
Add progress-stream for upload/download progress
2017-04-21 12:07:01 -07:00
Girish Ramakrishnan
e15c3f05c2
Pass DEBUG args to node.sh
2017-04-21 12:04:54 -07:00
Johannes Zellner
f516dddf30
Detect old backup format and pipe to openssl
2017-04-21 19:39:02 +02:00
Johannes Zellner
8fb1bc29d1
Fix storage tests for filesystem and s3
2017-04-21 17:21:10 +02:00
Johannes Zellner
cc8f8b2339
Only send backend specific fields on configuration
2017-04-21 16:52:10 +02:00
Johannes Zellner
f7338c8210
Show default filesystem storage location
2017-04-21 16:51:46 +02:00
Johannes Zellner
c04e8f33c5
Allow to change the backup storage provider in the ui
2017-04-21 16:37:17 +02:00
Johannes Zellner
8e1f190079
Implement check configuration for filesystem backend
2017-04-21 15:37:57 +02:00
Johannes Zellner
019cff8851
Wait for dpkg tasks to finish before installing new docker
2017-04-21 13:34:36 +02:00
Johannes Zellner
8a76788e7a
From this version on encrypted backups don't use the openssl implicit salt
2017-04-21 10:58:52 +02:00
Johannes Zellner
33492333c7
Fix backupDone() for caas
2017-04-21 10:31:43 +02:00
Johannes Zellner
710cdc7bb8
Bring storage interface up to date
2017-04-21 10:01:58 +02:00
Johannes Zellner
0471a14894
We always encrypt even with empty key so make that clear with the file extension
2017-04-21 09:59:27 +02:00
Girish Ramakrishnan
e4b1b73408
Add more 0.120.0 changes
2017-04-20 20:16:12 -07:00
Girish Ramakrishnan
a6c2c608e4
storage/caas: bring it upto speed for new backup design
2017-04-20 20:12:45 -07:00
Girish Ramakrishnan
1cd36319ff
s3: support setting the signatureVersion
2017-04-20 19:56:06 -07:00
Girish Ramakrishnan
a65611a37b
Fix error handling in s3 backend
2017-04-20 19:27:12 -07:00
Girish Ramakrishnan
4769d14414
Mark all fs failures as external errors
...
This gets the right error message on failures:
$ cloudron machine backup create
Waiting for backup to finish...backup failed: ENOENT: no such file or directory, open '/var/backups/2017-04-21-013900-584/app_7549c6a1-682e-4150-8b40-2c31a3fa92f7_2017-04-21-013900-591_v0.7.1.tar.gz'
2017-04-20 19:01:12 -07:00
Girish Ramakrishnan
64c2f3d8c3
copyBackup() already returns a BackupError
2017-04-20 18:56:34 -07:00
Girish Ramakrishnan
2083efdef8
Fix PERM issue when restoring an app with redis
...
This is the root cause of 926224bd5d .
0488aada9f caused a regression where
we setup addons in the restore code path. This meant that redis was
instantiated and running, changing the perms of the dir. Then when
the backup extract happens it fails as it has wrong permissions.
2017-04-20 18:12:29 -07:00
Girish Ramakrishnan
a5efdb067d
Revert "Add apprestoretask.js"
...
This reverts commit 926224bd5d .
This shouldn't be required. We already fix the perms
See 7035b3c18a
2017-04-20 18:12:29 -07:00
Girish Ramakrishnan
0584ace954
Remove StorageError from backends
2017-04-20 18:12:29 -07:00
Girish Ramakrishnan
77d23d6c15
return BackupsError on error
2017-04-20 18:12:29 -07:00