feat: Automatic plaintext backup option in Preferences > Backups will backup your notes and tags into plaintext, unencrypted folders on your computer. In addition, automatic encrypted text backups preference management has moved from the top-level menu in the desktop app to Preferences > Backups. (#2322)

This commit is contained in:
Mo
2023-05-02 11:05:10 -05:00
committed by GitHub
parent 3df23cdb5c
commit 7e3db49322
76 changed files with 1526 additions and 1013 deletions

View File

@@ -1,14 +1,35 @@
import { OnChunkCallback } from '../Chunker/OnChunkCallback'
import { DesktopWatchedDirectoriesChanges } from '../Device/DesktopWatchedChanges'
import { FileBackupRecord } from '../Device/FileBackupsMapping'
export interface BackupServiceInterface {
openAllDirectoriesContainingBackupFiles(): void
prependWorkspacePathForPath(path: string): string
importWatchedDirectoryChanges(changes: DesktopWatchedDirectoriesChanges): Promise<void>
getFileBackupInfo(file: { uuid: string }): Promise<FileBackupRecord | undefined>
readEncryptedFileFromBackup(uuid: string, onChunk: OnChunkCallback): Promise<'success' | 'failed' | 'aborted'>
isFilesBackupsEnabled(): Promise<boolean>
isFilesBackupsEnabled(): boolean
enableFilesBackups(): Promise<void>
disableFilesBackups(): Promise<void>
disableFilesBackups(): void
changeFilesBackupsLocation(): Promise<string | undefined>
getFilesBackupsLocation(): Promise<string>
getFilesBackupsLocation(): string | undefined
openFilesBackupsLocation(): Promise<void>
openFileBackup(record: FileBackupRecord): Promise<void>
getFileBackupAbsolutePath(record: FileBackupRecord): string
isTextBackupsEnabled(): boolean
enableTextBackups(): Promise<void>
disableTextBackups(): void
getTextBackupsLocation(): string | undefined
openTextBackupsLocation(): Promise<void>
changeTextBackupsLocation(): Promise<string | undefined>
saveTextBackupData(data: string): Promise<void>
isPlaintextBackupsEnabled(): boolean
enablePlaintextBackups(): Promise<void>
disablePlaintextBackups(): void
getPlaintextBackupsLocation(): string | undefined
openPlaintextBackupsLocation(): Promise<void>
changePlaintextBackupsLocation(): Promise<string | undefined>
}