diff --git a/src/api/backup.js b/src/api/backup.js
index a18c6050..6de46a6c 100644
--- a/src/api/backup.js
+++ b/src/api/backup.js
@@ -15,14 +15,22 @@ backupApi.importMarkdown = (formData, uploadProgress, cancelToken) => {
})
}
-backupApi.backupWorkDir = () => {
+backupApi.backupWorkDir = options => {
return service({
url: `${baseUrl}/work-dir`,
method: 'post',
+ data: options,
timeout: 8640000 // 24 hours
})
}
+backupApi.listWorkDirOptions = () => {
+ return service({
+ url: `${baseUrl}/work-dir/options`,
+ method: 'get'
+ })
+}
+
backupApi.listWorkDirBackups = () => {
return service({
url: `${baseUrl}/work-dir`,
diff --git a/src/views/system/components/BackupWorkDirDrawer.vue b/src/views/system/components/BackupWorkDirDrawer.vue
index 53ecca49..877e3a32 100644
--- a/src/views/system/components/BackupWorkDirDrawer.vue
+++ b/src/views/system/components/BackupWorkDirDrawer.vue
@@ -41,20 +41,34 @@