Girish Ramakrishnan
|
e68db4ce57
|
Aim for 60% used space
|
2020-11-02 23:42:53 -08:00 |
|
Johannes Zellner
|
493f1505f0
|
Check also for mountpoint on filesystem with external disk
|
2020-07-02 19:08:27 +02:00 |
|
Johannes Zellner
|
a96da20536
|
TODO is done for filesystem backend moutnpoint check
|
2020-06-26 17:57:26 +02:00 |
|
Johannes Zellner
|
60f1b2356a
|
Also make nfs storage provider same as cifs and sshfs
|
2020-06-22 15:51:05 +02:00 |
|
Girish Ramakrishnan
|
c855d75f35
|
remove mkdirp use
node 10.12 has { recursive: true }
|
2020-06-11 08:27:48 -07:00 |
|
Johannes Zellner
|
89494ced41
|
Check for sshfs and cifs backup backends, if they are mounted
|
2020-06-08 17:46:52 +02:00 |
|
Johannes Zellner
|
ef764c2393
|
Merge sshfs.js into filesystem.js
|
2020-06-08 17:08:26 +02:00 |
|
Johannes Zellner
|
8624e2260d
|
add storage api to make preflight checks
Currently there is only disk space checking but sshfs and cifs need
mount point checking as well
|
2020-06-08 16:25:05 +02:00 |
|
Johannes Zellner
|
3557fcd129
|
Add sshfs quirks to shared code in filesytstem.js
|
2020-06-05 13:45:25 +02:00 |
|
Johannes Zellner
|
330b4a613c
|
Retrieve the backupPath from the storage provider itself
|
2020-06-05 13:27:18 +02:00 |
|
Girish Ramakrishnan
|
f84622efa1
|
fs: add create/unlink tests
|
2020-05-26 15:31:41 -07:00 |
|
Girish Ramakrishnan
|
8c9ce30d29
|
Move BackupsError to BoxError
|
2019-10-22 21:03:47 -07:00 |
|
Girish Ramakrishnan
|
d1582a435d
|
readdirp args have changed
|
2019-04-24 10:47:04 -07:00 |
|
Girish Ramakrishnan
|
1119a62576
|
fs: emit progress messages for copy and removeDir
|
2019-04-03 11:54:46 -07:00 |
|
Girish Ramakrishnan
|
a88893b10a
|
remove/inject backups secret fields
follow same pattern as dns code
fixes #615
|
2019-02-09 20:44:05 -08:00 |
|
Girish Ramakrishnan
|
fd4057df94
|
shell.exec -> shell.spawn
|
2018-11-17 19:26:19 -08:00 |
|
Girish Ramakrishnan
|
d302dbc634
|
Fix tests
|
2018-08-02 14:59:50 -07:00 |
|
Girish Ramakrishnan
|
a1070b7da3
|
storage: fix file not found message
|
2018-07-30 07:47:52 -07:00 |
|
Girish Ramakrishnan
|
f546d53ca2
|
gcs: add listDir
part of #440
|
2018-07-28 03:51:32 -07:00 |
|
Girish Ramakrishnan
|
2bcc0eef96
|
fs: downloadDir is unused
|
2018-07-27 16:56:30 -07:00 |
|
Girish Ramakrishnan
|
ba8a549235
|
fs: open the source stream using download()
|
2018-07-27 15:23:48 -07:00 |
|
Girish Ramakrishnan
|
737541f707
|
storage: standardize the listDir API
|
2018-07-27 15:23:26 -07:00 |
|
Girish Ramakrishnan
|
94cb222869
|
filesystem: Use listDir
We can now refactor all the iterating/fs write logic into backups.js
(required for restoring encrypted backups)
|
2018-07-27 14:09:52 -07:00 |
|
Girish Ramakrishnan
|
df98847535
|
Remove backupDone from storage interface
This is only used by caas
|
2018-07-27 12:08:19 -07:00 |
|
Girish Ramakrishnan
|
7fd1bb8597
|
backup: Add externalDisk option to fs backend
This merely confirms from the user understands that backups have to
stored on an external disk.
|
2018-06-07 11:14:13 -07:00 |
|
Girish Ramakrishnan
|
8c81a97a4b
|
Check that the backup location has perms to create a directory
The backup itself runs as root and this works fine. But when rotating
the backup, the copy fails because it is unable to create a directory.
|
2017-10-26 11:41:34 -07:00 |
|
Girish Ramakrishnan
|
9273a6c726
|
Add option to disable hardlinks
We can probably remove this later based on the use
|
2017-10-16 15:22:40 -07:00 |
|
Girish Ramakrishnan
|
28ce5f41e3
|
handle errors in log stream
|
2017-10-11 12:55:56 -07:00 |
|
Girish Ramakrishnan
|
ac9e421ecf
|
improved backup progress and logging
|
2017-10-10 22:49:38 -07:00 |
|
Girish Ramakrishnan
|
d70ff7cd5b
|
Make copy() return event emitter
This way the storage logic does not need to rely on progress
|
2017-10-04 11:02:50 -07:00 |
|
Girish Ramakrishnan
|
21afc71d89
|
add tests for storage backends
|
2017-10-02 23:08:16 -07:00 |
|
Girish Ramakrishnan
|
5cccb50a31
|
fix backup cleanup logic
|
2017-09-30 18:38:45 -07:00 |
|
Girish Ramakrishnan
|
954224dafb
|
make syncer track directories
|
2017-09-29 15:29:18 -07:00 |
|
Girish Ramakrishnan
|
4a5cbab194
|
Do not remove parent directory in fs.remove()
Do the pruning in the cleanup logic instead
|
2017-09-28 20:55:45 -07:00 |
|
Girish Ramakrishnan
|
19999abc50
|
s3: fix restore
|
2017-09-28 14:35:49 -07:00 |
|
Girish Ramakrishnan
|
eeef221b4e
|
Fix race where pipe finishes before file is created
When there are 0 length files, this is easily reproducible.
|
2017-09-27 19:40:26 -07:00 |
|
Girish Ramakrishnan
|
a34180c27b
|
Add format to backupsdb
Call remove/removeDir based on the format
|
2017-09-27 18:02:30 -07:00 |
|
Girish Ramakrishnan
|
b3c6b8aa15
|
do not spawn process just for chown
|
2017-09-27 15:07:19 -07:00 |
|
Girish Ramakrishnan
|
e39329218d
|
Make tests work
|
2017-09-27 11:38:43 -07:00 |
|
Girish Ramakrishnan
|
2780de631e
|
writable streams emit finish
|
2017-09-26 16:43:51 -07:00 |
|
Girish Ramakrishnan
|
399c756735
|
use exec so that filenames do not have to be escaped
|
2017-09-26 15:53:42 -07:00 |
|
Girish Ramakrishnan
|
a9e89b57d9
|
merge caas storage into s3 backend
|
2017-09-26 12:28:33 -07:00 |
|
Girish Ramakrishnan
|
0a60365143
|
Initial version of flat-file uploader
|
2017-09-26 00:17:11 -07:00 |
|
Girish Ramakrishnan
|
b0f85678d4
|
Implement downloadDir for flat-file format
|
2017-09-23 18:07:26 -07:00 |
|
Girish Ramakrishnan
|
e43413e063
|
implement remove dir in storage backends
|
2017-09-23 12:34:51 -07:00 |
|
Girish Ramakrishnan
|
97da8717ca
|
Refactor backup strategy logic into backups.js
|
2017-09-20 14:09:55 -07:00 |
|
Girish Ramakrishnan
|
26f33a8e9b
|
Send resolved path to the storage APIs
|
2017-09-19 21:58:35 -07:00 |
|
Girish Ramakrishnan
|
a3293c4c35
|
Fix tests
|
2017-09-19 12:43:13 -07:00 |
|
Girish Ramakrishnan
|
4892473eff
|
backupIds do not have extension anymore
this code existed for legacy reasons
|
2017-09-19 12:34:09 -07:00 |
|
Girish Ramakrishnan
|
221d5f95e1
|
ensure backupFolder is always set
|
2017-09-19 12:34:09 -07:00 |
|