Skip to content

A modern, self-hosted backup solution for secure, encrypted backups across local and cloud storage.

feat: add new remote storage integrations

towfiqifd121665b655
diff --git a/backend/src/utils/providers/_features.ts b/backend/src/utils/providers/_features.ts
index b6ee5d4..52cd874 100644
--- a/backend/src/utils/providers/_features.ts
+++ b/backend/src/utils/providers/_features.ts
@@ -643,6 +643,76 @@ const providerFeatures = {
EmptyDir: false,
Hashing: false,
},
+ 'drime': {
+ Purge: true,
+ Copy: true,
+ Move: true,
+ DirMove: true,
+ CleanUp: false,
+ ListR: false,
+ StreamUpload: true,
+ MultithreadUpload: true,
+ LinkSharing: false,
+ About: false,
+ EmptyDir: true,
+ Hashing: false,
+ },
+ 'filelu': {
+ Purge: true,
+ Copy: false,
+ Move: true,
+ DirMove: false,
+ CleanUp: false,
+ ListR: false,
+ StreamUpload: false,
+ MultithreadUpload: false,
+ LinkSharing: false,
+ About: true,
+ EmptyDir: true,
+ Hashing: false,
+ },
+ 'filen': {
+ Purge: true,
+ Copy: false,
+ Move: true,
+ DirMove: true,
+ CleanUp: true,
+ ListR: true,
+ StreamUpload: true,
+ MultithreadUpload: true,
+ LinkSharing: false,
+ About: true,
+ EmptyDir: true,
+ Hashing: true,
+ },
+ 'internxt': {
+ Purge: false,
+ Copy: false,
+ Move: false,
+ DirMove: false,
+ CleanUp: false,
+ ListR: false,
+ StreamUpload: false,
+ MultithreadUpload: false,
+ LinkSharing: false,
+ About: true,
+ EmptyDir: true,
+ Hashing: false,
+ },
+ 'shade': {
+ Purge: false,
+ Copy: false,
+ Move: true,
+ DirMove: true,
+ CleanUp: false,
+ ListR: false,
+ StreamUpload: false,
+ MultithreadUpload: true,
+ LinkSharing: false,
+ About: false,
+ EmptyDir: true,
+ Hashing: false,
+ },
};
export default providerFeatures;
diff --git a/backend/src/utils/providers/drime.ts b/backend/src/utils/providers/drime.ts
new file mode 100644
index 0000000..710c459
--- /dev/null
+++ b/backend/src/utils/providers/drime.ts
@@ -0,0 +1,68 @@
+const drimeSettings = [
+ {
+ label: 'API Access Token',
+ value: 'access_token',
+ fieldType: 'string',
+ authFieldType: 'client',
+ required: true,
+ default: '',
+ description: 'API Access token. You can get this from the web control panel under Settings → Developer.',
+ command: '--drime-access-token',
+ },
+ {
+ label: 'Root Folder ID',
+ value: 'root_folder_id',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'ID of the root folder. Leave blank normally, it will be filled in automatically.',
+ command: '--drime-root-folder-id',
+ },
+ {
+ label: 'Workspace ID',
+ value: 'workspace_id',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'Workspace ID. Leave blank unless you need to target a specific workspace.',
+ command: '--drime-workspace-id',
+ },
+ {
+ label: 'List Chunk',
+ value: 'list_chunk',
+ fieldType: 'int',
+ required: false,
+ default: '1000',
+ description: 'Number of items to list in each call.',
+ command: '--drime-list-chunk',
+ },
+ {
+ label: 'Hard Delete',
+ value: 'hard_delete',
+ fieldType: 'bool',
+ required: false,
+ default: false,
+ description: 'Delete files permanently rather than putting them into the trash.',
+ command: '--drime-hard-delete',
+ },
+ {
+ label: 'Encoding',
+ value: 'encoding',
+ fieldType: 'encoding',
+ required: false,
+ default: 'slash,backslash,del,ctl,leftspace,rightspace,invalidutf8,dot',
+ description: 'The encoding for the backend.',
+ command: '--drime-encoding',
+ },
+ {
+ label: 'Description',
+ value: 'description',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'Description of the Storage.',
+ command: '--drime-description',
+ },
+];
+
+export default drimeSettings;
diff --git a/backend/src/utils/providers/filelu.ts b/backend/src/utils/providers/filelu.ts
new file mode 100644
index 0000000..74c6579
--- /dev/null
+++ b/backend/src/utils/providers/filelu.ts
@@ -0,0 +1,33 @@
+const fileluSettings = [
+ {
+ label: 'Rclone Key',
+ value: 'key',
+ fieldType: 'string',
+ authFieldType: 'client',
+ required: true,
+ default: '',
+ description: 'Your FileLu key from My Account.',
+ command: '--filelu-key',
+ },
+ {
+ label: 'Encoding',
+ value: 'encoding',
+ fieldType: 'encoding',
+ required: false,
+ default:
+ 'slash,ltgt,doublequote,singlequote,backquote,dollar,colon,question,asterisk,pipe,hash,percent,backslash,crlf,del,ctl,leftspace,leftperiod,lefttilde,leftcrlfhtvt,rightspace,rightperiod,rightcrlfhtvt,invalidutf8,dot,squarebracket,semicolon,exclamation',
+ description: 'The encoding for the backend.',
+ command: '--filelu-encoding',
+ },
+ {
+ label: 'Description',
+ value: 'description',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'Description of the Storage.',
+ command: '--filelu-description',
+ },
+];
+
+export default fileluSettings;
diff --git a/backend/src/utils/providers/filen.ts b/backend/src/utils/providers/filen.ts
new file mode 100644
index 0000000..28dd413
--- /dev/null
+++ b/backend/src/utils/providers/filen.ts
@@ -0,0 +1,53 @@
+const filenSettings = [
+ {
+ label: 'Email',
+ value: 'email',
+ fieldType: 'string',
+ authFieldType: 'password',
+ required: true,
+ default: '',
+ description: 'Email of your Filen account.',
+ command: '--filen-email',
+ },
+ {
+ label: 'Password',
+ value: 'password',
+ fieldType: 'string',
+ authFieldType: 'password',
+ required: true,
+ default: '',
+ description: 'Password of your Filen account.',
+ command: '--filen-password',
+ },
+ {
+ label: 'API Key',
+ value: 'api_key',
+ fieldType: 'string',
+ authFieldType: 'password',
+ required: true,
+ default: '',
+ description:
+ 'API Key for your Filen account. You can generate one using the Filen CLI export-api-key command.',
+ command: '--filen-api-key',
+ },
+ {
+ label: 'Encoding',
+ value: 'encoding',
+ fieldType: 'encoding',
+ required: false,
+ default: 'slash,del,ctl,invalidutf8,dot',
+ description: 'The encoding for the backend.',
+ command: '--filen-encoding',
+ },
+ {
+ label: 'Description',
+ value: 'description',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'Description of the Storage.',
+ command: '--filen-description',
+ },
+];
+
+export default filenSettings;
diff --git a/backend/src/utils/providers/internxt.ts b/backend/src/utils/providers/internxt.ts
new file mode 100644
index 0000000..7ca9039
--- /dev/null
+++ b/backend/src/utils/providers/internxt.ts
@@ -0,0 +1,42 @@
+const internxtSettings = [
+ {
+ label: 'Email',
+ value: 'email',
+ fieldType: 'string',
+ authFieldType: 'password',
+ required: true,
+ default: '',
+ description: 'Email of your Internxt account.',
+ command: '--internxt-email',
+ },
+ {
+ label: 'Password',
+ value: 'pass',
+ fieldType: 'string',
+ authFieldType: 'password',
+ required: true,
+ default: '',
+ description: 'Password of your Internxt account.',
+ command: '--internxt-pass',
+ },
+ {
+ label: 'Encoding',
+ value: 'encoding',
+ fieldType: 'encoding',
+ required: false,
+ default: 'slash,backslash,crlf,rightperiod,invalidutf8,dot',
+ description: 'The encoding for the backend.',
+ command: '--internxt-encoding',
+ },
+ {
+ label: 'Description',
+ value: 'description',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'Description of the Storage.',
+ command: '--internxt-description',
+ },
+];
+
+export default internxtSettings;
diff --git a/backend/src/utils/providers/shade.ts b/backend/src/utils/providers/shade.ts
new file mode 100644
index 0000000..d71ce43
--- /dev/null
+++ b/backend/src/utils/providers/shade.ts
@@ -0,0 +1,42 @@
+const shadeSettings = [
+ {
+ label: 'Drive ID',
+ value: 'drive_id',
+ fieldType: 'string',
+ authFieldType: 'client',
+ required: true,
+ default: '',
+ description: 'The ID of your drive. You can find this in the drive settings.',
+ command: '--shade-drive-id',
+ },
+ {
+ label: 'API Key',
+ value: 'api_key',
+ fieldType: 'string',
+ authFieldType: 'client',
+ required: true,
+ default: '',
+ description: 'An API key for your Shade account.',
+ command: '--shade-api-key',
+ },
+ {
+ label: 'Encoding',
+ value: 'encoding',
+ fieldType: 'encoding',
+ required: false,
+ default: 'slash,backslash,del,ctl,invalidutf8,dot',
+ description: 'The encoding for the backend.',
+ command: '--shade-encoding',
+ },
+ {
+ label: 'Description',
+ value: 'description',
+ fieldType: 'string',
+ required: false,
+ default: '',
+ description: 'Description of the Storage.',
+ command: '--shade-description',
+ },
+];
+
+export default shadeSettings;
diff --git a/frontend/public/providers/drime.png b/frontend/public/providers/drime.png
new file mode 100644
index 0000000..afab862
Binary files /dev/null and b/frontend/public/providers/drime.png differ
diff --git a/frontend/public/providers/filelu.png b/frontend/public/providers/filelu.png
new file mode 100644
index 0000000..2b1f4e3
Binary files /dev/null and b/frontend/public/providers/filelu.png differ
diff --git a/frontend/public/providers/filen.png b/frontend/public/providers/filen.png
new file mode 100644
index 0000000..04a6f61
Binary files /dev/null and b/frontend/public/providers/filen.png differ
diff --git a/frontend/public/providers/internxt.png b/frontend/public/providers/internxt.png
new file mode 100644
index 0000000..63afdd4
Binary files /dev/null and b/frontend/public/providers/internxt.png differ
diff --git a/frontend/public/providers/shade.png b/frontend/public/providers/shade.png
new file mode 100644
index 0000000..dc843ec
Binary files /dev/null and b/frontend/public/providers/shade.png differ
diff --git a/frontend/src/utils/storageProviders.ts b/frontend/src/utils/storageProviders.ts
index 52a9a99..8c9b8c9 100644
--- a/frontend/src/utils/storageProviders.ts
+++ b/frontend/src/utils/storageProviders.ts
@@ -371,4 +371,39 @@ export const storageProviders = {
name: 'The local filesystem',
fields: [],
},
+ drime: {
+ id: 'drime',
+ name: 'Drime',
+ fields: [{ label: 'API Access Token', value: 'access_token' }],
+ },
+ filelu: {
+ id: 'filelu',
+ name: 'FileLu',
+ fields: [{ label: 'Key', value: 'key' }],
+ },
+ filen: {
+ id: 'filen',
+ name: 'Filen',
+ fields: [
+ { label: 'Email', value: 'email' },
+ { label: 'Password', value: 'password' },
+ { label: 'API Key', value: 'apiKey' },
+ ],
+ },
+ internxt: {
+ id: 'internxt',
+ name: 'Internxt Drive',
+ fields: [
+ { label: 'Email', value: 'email' },
+ { label: 'Password', value: 'password' },
+ ],
+ },
+ shade: {
+ id: 'shade',
+ name: 'Shade',
+ fields: [
+ { label: 'Drive ID', value: 'drive_id' },
+ { label: 'API Key', value: 'api_key' },
+ ],
+ },
};