Code Monkey home page Code Monkey logo

joplin-plugin-backup's Introduction

joplin-plugin-backup's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

joplin-plugin-backup's Issues

Warning for first time usage of a path

Warn the user that all files not releated to the backup in this folder would be deleted.

  • Show Msg on path change
  • Don't show Msg for already setuped / installed plugin
  • Add a more clear warning in the documentation
  • Add a information in the plugin configuration

Issue backing up to a single .jex file

Joplin 2.3.5 (prod, linux)

Client ID: 675f26f8e7e542b3900bb8885dbf414a
Sync Version: 3
Profile Version: 39
Keychain Supported: No

Revision: 819af3c
I recently updated simple backup and when I backup to a single .jex file the size has dropped from 36mb to 8mb. I'm assuming this to be an issue, not going to try to recover and lose everything. When I do a backup to individual .jex files everything seems to be fine.
Any ideas on this. See log below.

/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:51: CommandService::execute: exportFolders
(142) ["109652e22b7245498bcb043f27452a34", "792ad266486640aabddfac6c1b5a5fc8", "110c214d1f534c7aaf3ab1fa9b451509", "edf6a43fbc1e41769a534ae3054306c9", "10544b7d51f449dc8bfc9f9d51c260bf", "4004ecafefed4f9f872596b4ca58a18a", "e90c18741495432c89ced402108503d8", "8e7ba990b42b4d3ab29a613fcfd92d13", "d8205876388c473da942f347e85381f9", "e843b0ef135b43fa9f5cbe588249ffea", "ba47327dcc1d49a0a35ba1c5549114cb", "8cf3ea50742b4caf9172b501f96cee21", "b1f1dcfa02c44c688ce2b57687e1fe44", "d822e4e962134109870646179f793f01", "301ca44e6d954ebc862f5b9d9c951efb", "d48f0007237045f0a74db68196e11cc9", "cacd1051646e45999c57dbd9a3e024a8", "33acdbaf7f534a0185a7e6fe044b17e5", "071c1ea89c154e96bcc1573491cfd2f6", "5f9db68c3e364da380849fc7178eb34a", "d4323d631231498a9fa45acebe169b8f", "3317616964654e3fa2ab845a4188b04a", "cf3a471a340e40fcb1238efc0fdb8419", "6c49a7e757204ebf97dc352c81a0b2fb", "f254de83066544baa7575c503f9a03f7", "1ee90620fa6645fa803cc2ca9b2e1c68", "87d8959308454b6ca67e65724b5c158a", "8c7c67ac2fb84b5a95cb797a59429895", "15ca8d1e2e784108ac4452535923026f", "bea12e316d01485892edd0899b0e6467", "c5a904919a6b43a2a859d11c54061c7b", "8284c0807fe74d03808c27ce923ca2f1", "9f32620c8c3442b095c4e6c0c69c826a", "4f25f3cf35c944e5aa5be291075ba527", "576685a7bc3d4f478c8f46e828c7b893", "5eecc1f56f4c469e96c2f07b65233c26", "a735dcd782af41d3a4a0f5226d24c385", "fe2727f30a3a4cbeb99fd7ca07babcaf", "c393741ce71542d5a7dad75a4da33ac9", "b19f603ebdc44b92922e28d632972080", "b4a866906d1e478481d4f1c9cff2402d", "dde8d1145fe34e2ea80e2d13978d8a40", "79c6d051c1384833b261c50265565909", "fdb6b0ca1ee348ddb8845ae57c4f9cf8", "3dd1919240584dc9aaf385f643791bf5", "0532b574eff44a94a4ff2be7d7d55c49", "8cee0b973b8d49188f23cacf3ca04994", "c919e261980e4bedb02231077c7f664e", "57f5f52087434a408730016e585b0597", "d43b44b13ce34645b8232f39d8b4789a", "109652e22b7245498bcb043f27452a34", "792ad266486640aabddfac6c1b5a5fc8", "110c214d1f534c7aaf3ab1fa9b451509", "edf6a43fbc1e41769a534ae3054306c9", "10544b7d51f449dc8bfc9f9d51c260bf", "4004ecafefed4f9f872596b4ca58a18a", "e90c18741495432c89ced402108503d8", "8e7ba990b42b4d3ab29a613fcfd92d13", "d8205876388c473da942f347e85381f9", "e843b0ef135b43fa9f5cbe588249ffea", "ba47327dcc1d49a0a35ba1c5549114cb", "8cf3ea50742b4caf9172b501f96cee21", "b1f1dcfa02c44c688ce2b57687e1fe44", "d822e4e962134109870646179f793f01", "301ca44e6d954ebc862f5b9d9c951efb", "d48f0007237045f0a74db68196e11cc9", "cacd1051646e45999c57dbd9a3e024a8", "33acdbaf7f534a0185a7e6fe044b17e5", "071c1ea89c154e96bcc1573491cfd2f6", "5f9db68c3e364da380849fc7178eb34a", "d4323d631231498a9fa45acebe169b8f", "3317616964654e3fa2ab845a4188b04a", "cf3a471a340e40fcb1238efc0fdb8419", "6c49a7e757204ebf97dc352c81a0b2fb", "f254de83066544baa7575c503f9a03f7", "1ee90620fa6645fa803cc2ca9b2e1c68", "87d8959308454b6ca67e65724b5c158a", "8c7c67ac2fb84b5a95cb797a59429895", "15ca8d1e2e784108ac4452535923026f", "bea12e316d01485892edd0899b0e6467", "c5a904919a6b43a2a859d11c54061c7b", "8284c0807fe74d03808c27ce923ca2f1", "9f32620c8c3442b095c4e6c0c69c826a", "4f25f3cf35c944e5aa5be291075ba527", "576685a7bc3d4f478c8f46e828c7b893", "5eecc1f56f4c469e96c2f07b65233c26", "a735dcd782af41d3a4a0f5226d24c385", "fe2727f30a3a4cbeb99fd7ca07babcaf", "c393741ce71542d5a7dad75a4da33ac9", "b19f603ebdc44b92922e28d632972080", "b4a866906d1e478481d4f1c9cff2402d", "dde8d1145fe34e2ea80e2d13978d8a40", "79c6d051c1384833b261c50265565909", "fdb6b0ca1ee348ddb8845ae57c4f9cf8", "3dd1919240584dc9aaf385f643791bf5", "0532b574eff44a94a4ff2be7d7d55c49", "8cee0b973b8d49188f23cacf3ca04994", "c919e261980e4bedb02231077c7f664e", "57f5f52087434a408730016e585b0597", "d43b44b13ce34645b8232f39d8b4789a", …]
jex /home/carson/pCloudDrive/Joplin/Backup/allNotebooks/joplin_active_backup_job/all_notebooks.jex
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.value backupInfo
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.setValue backupInfo [{"name":"202109041154","date":1630770863326},{"name":"202109041204","date":1630771491093}]
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.value backupInfo
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.setValue backupInfo [{"name":"202109041154","date":1630770863326},{"name":"202109041204","date":1630771491093}]
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.value backupInfo
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.setValue lastBackup 1630771491093
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:52: PluginRunner: Got message (3): joplin.settings.value fileLogLevel
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:53: Saving settings...
/tmp/.mount_JoplinPo…n/lib/Logger.js:188 12:04:53: Settings have been saved.

Compress archive

I would like to have the archive compressed.
v1.0.1
Thank you.

Settings are lost

The setting for the path is lost from time to time.
Reported by whitewall

grafik

grafik

[2021-07-30 18:54:37.599] [info] Backup started
[2021-07-30 18:54:37.603] [verbose] loadSettings
[2021-07-30 18:54:37.603] [verbose] loadBackupPath
[2021-07-30 18:54:37.618] [verbose] Plugin settings:
[2021-07-30 18:54:37.619] [verbose] path: 
[2021-07-30 18:54:37.621] [verbose] singleJex: true
[2021-07-30 18:54:37.623] [verbose] backupRetention: 21
[2021-07-30 18:54:37.624] [verbose] backupInterval: 24
[2021-07-30 18:54:37.626] [verbose] onlyOnChange: false
[2021-07-30 18:54:37.630] [verbose] usePassword: false
[2021-07-30 18:54:37.634] [verbose] lastBackup: 1627555224593
[2021-07-30 18:54:37.638] [verbose] fileLogLevel: verbose
[2021-07-30 18:54:37.643] [verbose] zipArchive: no
[2021-07-30 18:54:37.645] [verbose] compressionLevel: 0
[2021-07-30 18:54:37.646] [verbose] exportPath: 
[2021-07-30 18:54:37.649] [verbose] backupSetName: {YYYYMMDDHHmm}
[2021-07-30 18:54:37.651] [verbose] backupInfo: [{"name":"202107291610","date":1627555224593},{"name":"202107281606","date":1627468556846},{"name":"202107271605","date":1627382108438},{"name":"202107261602","date":1627295496463},{"name":"202107251601","date":1627209092679},{"name":"202107241558","date":1627122532297},{"name":"202107231554","date":1627035852624},{"name":"202107211111","date":1626846103748},{"name":"202107201111","date":1626759655756},{"name":"202107181758","date":1626611289997},{"name":"202107171754","date":1626524694373},{"name":"202107151211","date":1626331249508},{"name":"202107141024","date":1626238439726},{"name":"202107131021","date":1626151862363},{"name":"202107121018","date":1626065290066},{"name":"202107110927","date":1625975847517},{"name":"202107100920","date":1625889000000},{"name":"202107081903","date":1625751180000},{"name":"202107071737","date":1625659620000},{"name":"202107061736","date":1625573160000},{"name":"202107051716","date":1625485560000}]
[2021-07-30 18:54:37.651] [verbose] activeBackupPath: null
[2021-07-30 18:54:37.652] [verbose] backupBasePath: null
[2021-07-30 18:54:37.652] [verbose] logFile: C:\Users\xxxxxxxxxx\.config\joplin-desktop\cache\io.github.jackgruber.backup\activeBackup.log
[2021-07-30 18:54:37.652] [verbose] showDoneMsg: false
[2021-07-30 18:54:37.654] [verbose] installationDir: C:\Users\xxxxxxxxx\.config\joplin-desktop\cache\io.github.jackgruber.backup
[2021-07-30 18:54:37.655] [error] Please configure backup path in Joplin Tools > Options > Backup

Settings no longer exists in the DB
grafik

joplin_log.zip

Button to backup now

Hello!

The plugin is fantastic, congratulations, a great plugin for Joplin, much needed!
It has many options, although I would like to have a button that allows you to make a backup now. That is, I make some configurations and when I click the button, the copy begins immediately.

Is this possible?

Thanks!

Backup path not respected anymore

Hi, thanks for your great plugin!

The plugin seemed to work correctly until about 1 week ago. Now I've noticed that backups are not created anymore in the specified Backup path, but rather in .config/joplin-desktop/tmp/joplin_active_backup_job. This seems to be the case both for manual and automatic backups.

I'm on Ubuntu 20.04, Joplin 2.5.12, Simple Backup 1.0.3.

Explictly state backup path is the target and not the enclosing directory.

I, a meek end-user, assumed the backup path behavior would create a joplin backup within the directory I used. So I specified a folder I keep my backups in.

Example path I used on MacOS:
/Users/gallagherman/dropbox/backup/

I thought it would create something like /Users/gallagherman/dropbox/backup/joplinbkup.jex or something of the like.

However, I thought wrong. Joplin backup overwrote all the content in my backup folder!

I do think I was a bit careless, but I think it should be explicitly stated that the backup path is the exact backup target. It is too easy for a user to put the backup path to their home directory or something similar and overwrite everything!

Update Plugin to Default to Single JEX Export

Request to kindly update the default backup type to Single JEX export. Exporting on a notebook-by-notebook basis does not retain notebook hierarchy, which is tremendously problematic when performing a restore.

backup to nonexisting path (network drive) shows error messages every few minutes

I installed the backup plugin and pointed it to a network drive, works fine.

When i travel this drive is (obviuosly) not available and the backup plugins complains with a modal window i have to confirm.

BUT it retries every few minutes and disrupts my work with a modal error message every single time. (backup intervall is on 24h)

There doesn't seem to be a way to disable this and/or get rid of the error messages.

i uninstalled for now, the plugin is really unusable for me like that.

There is no backup menu on Options bar

Environment

  • OS Version: Ubuntu20.04
  • Joplin Version:
Joplin 2.7.13 (prod, linux)

客户端 ID: 1dd2af4cd6e94e98a9d0765407b79dd8
同步版本: 3
配置文件版本: 41
支持的密钥链: 否

修订: 5b5165d
  • Backup plugin version:

image

Steps to reproduce

  1. Install Joplin-2.7.13.AppImage
  2. Download the latest released JPL package (io.github.jackgruber.backup.jpl) from here
  3. Close Joplin
  4. Copy the downloaded JPL package in your profile plugins folder
  5. Start Joplin
  6. I cannot find backup menu on Options bar
    image

showing backup progress notice

Hi, Thank you for valuable extension!

It is so helpful extension, but there is one thing missing...

sometimes, it is not easy to check whether it is working or not.
so could you add some notification or progress bar when it is working ?

It will be perfect extension if it is added! 👍

Add a section on manually opening JEX when needed?

Thank you for creating this great plugin!

I noticed that in README you mentioned Individual notes cannot be restored from the JEX file. Not sure about what that is referring to. It seems that what you are trying to express is that this plugin doesn't provide the function of individual restore, but only restore all the notes as a whole.

Yet it is in fact very easy to open JEX file and restore notes manually if that is needed in some case, which may help some (a tiny amount of?) user. JEX file are just tar files with a different file extension, and by changing the file extension back to tar it can be extracted. Then if the note ID is known, the corresponding markdown file can be directly retrieved, otherwise a simple text search would find the note needed to be recovered.

Therefore, I think it might be better to include a small section on how to manually open JEX file. One use case I could think of might be opening a very old backup to recover a history version that's too old and was deleted by Joplin.

Add option to select export format

Joplin Desktop allows you to export to multiple formats through the GUI...

~ See screenshot of Joplin export options... ~

image

This plugin seems to be hardcoded to only export using the "jex" option.

It would be useful to be able to export to any of the available formats:

  • jex
  • raw
  • md
  • md_frontmatter
  • html

https://github.com/laurent22/joplin/blob/5d7178783592dd7cadf1f50f87d34521e9c9753b/packages/lib/services/interop/InteropService.ts#L96

Backup fails to delete previous backup file

Simple Backup: 1.1.0
OS: Windows 11 Pro
Joplin: 2.9.1 (prod, win32)

Issue

Consistently, when I open Joplin, I get a message that a previous backup file doesn't exist when it does.

image

More Information

This started happening a few weeks ago, prior to updating to Simple Backup 1.1.0, so I don't think it's a Simple Backup version issue.

I've tried the following:

  1. Set the entire Joplin Backup folder to allow offline access
  2. Restart Joplin and manually ran backup

I may have had a false negative with number 2. I assumed that, when running a manual backup, older backups would be deleted. But I can't confirm if that's the expected behavior. The reason I wanted to run that test is in case Joplin is starting before Google Drive and is capturing file system information early. In short, maybe Joplin doesn't believe the G drive exists. Or, maybe SB doesn't.

backup won't work if old newJoplinBackup.7z file is there

Hello,
today I recognized that no backups were created if the file newJoplinBackup.7z is still in the backup directory.

My Joplin is running all the time on my Notebook and I made backups every hour on a network drive. Today I recognized the file newJoplinBackup.7z in the backup directory which was many days old an since this date no backups were made anymore.

After some tests I found the solution: I removed the file and everything works fine.

So I think this is a bug and should be solved. I think the old newJoplinBackup.7z was the result of a interuppted backup by a shutdown during the backup was running.

Greeting and thx for the nice plugin, Thomas

explain or adapt function of "create backup" menu command

Depending on the developers intentions, I suggest to do one of the following two:

  • explain in the documentaion whether the "create backup" command in the tools menu (added there when the plugin is installed) respects the options set for the plugin. Example: with "only on change" set, when the tool menu command is evoked, is an extra backup created anyway, or only if a change was detected.
  • consider (and implemented) how the tool menu command should operate given the options available in the plugin's settings.
    My suggestion how to use the options already set:
  • do respect "single jex" flag
  • do NOT respect "keep x backup"
  • ignore interval (I suppose it's already the case)
  • BUT ignore "only on change"
  • AND present a file open dialog box in order to let the user choose a file path different from the default path.
    The later would be very useful in case the default backup path is on a drive not always connected to the device.

Just my 2 bit contribution. Thanks

Blank password make backup unterminated

Hi,
Today, back to the office after vacation, I upgraded Joplin (from 2.1.9 to 2.3.5), the plugins and all the needs.
I try to make manual backup, from the Tools menu, but I don't see the backup file in the destination directory.

Then I started fumbling through directories and I see the temporary file jex and a 0-byte 7zip file.
image
It stuck in this situation.

Then I looked in the plugin configuration and I see this:
image

In the log file there's no information (see log pasted at bottom).

I think there's a problem when the password is left blank.
N.B. The password was set before the last joplin upgrade. Maybe it was deleted in the process?

Bye and thanks.

[2021-08-23 11:44:05.417] [info] Backup started
[2021-08-23 11:44:05.421] [verbose] loadSettings
[2021-08-23 11:44:05.423] [verbose] loadBackupPath
[2021-08-23 11:44:05.432] [verbose] Plugin settings:
[2021-08-23 11:44:05.433] [verbose] path: y:\Research and Development\Working Area\XXXXXXXX\joplin-bkp\
[2021-08-23 11:44:05.434] [verbose] singleJex: true
[2021-08-23 11:44:05.437] [verbose] backupRetention: 3
[2021-08-23 11:44:05.440] [verbose] backupInterval: 24
[2021-08-23 11:44:05.442] [verbose] onlyOnChange: true
[2021-08-23 11:44:05.443] [verbose] usePassword: true
[2021-08-23 11:44:05.445] [verbose] lastBackup: 1626252674049
[2021-08-23 11:44:05.447] [verbose] fileLogLevel: verbose
[2021-08-23 11:44:05.448] [verbose] zipArchive: no
[2021-08-23 11:44:05.450] [verbose] compressionLevel: 0
[2021-08-23 11:44:05.451] [verbose] exportPath: 
[2021-08-23 11:44:05.453] [verbose] backupSetName: {YYYY}-{MM}-{DD}-{HHmm}
[2021-08-23 11:44:05.454] [verbose] backupInfo: [{"name":"2021-07-14-1051","date":1626252674049},{"name":"2021-07-13-1049","date":1626166142194},{"name":"2021-07-12-1046","date":1626079561451}]
[2021-08-23 11:44:05.456] [verbose] activeBackupPath: C:\Users\XXXXXXXX\Joplin\JoplinProfile\tmp\joplin_active_backup_job
[2021-08-23 11:44:05.457] [verbose] backupBasePath: y:\Research and Development\Working Area\XXXXXXXX\joplin-bkp\
[2021-08-23 11:44:05.457] [verbose] logFile: C:\Users\XXXXXXXX\Joplin\JoplinProfile\cache\io.github.jackgruber.backup\activeBackup.log
[2021-08-23 11:44:05.458] [verbose] showDoneMsg: true
[2021-08-23 11:44:05.459] [verbose] installationDir: C:\Users\XXXXXXXX\Joplin\JoplinProfile\cache\io.github.jackgruber.backup
[2021-08-23 11:44:05.464] [info] Enable password protection: true
[2021-08-23 11:44:05.465] [verbose] Backup path: y:\Research and Development\Working Area\XXXXXXXX\joplin-bkp\
[2021-08-23 11:44:05.465] [verbose] Active backup path (export path): C:\Users\XXXXXXXX\Joplin\JoplinProfile\tmp\joplin_active_backup_job
[2021-08-23 11:44:05.466] [verbose] Create folder C:\Users\XXXXXXXX\Joplin\JoplinProfile\tmp\joplin_active_backup_job
[2021-08-23 11:44:05.468] [info] Backup Profile Data
[2021-08-23 11:44:05.468] [verbose] Create folder C:\Users\XXXXXXXX\Joplin\JoplinProfile\tmp\joplin_active_backup_job\profile
[2021-08-23 11:44:05.471] [verbose] Copy C:\Users\XXXXXXXX\Joplin\JoplinProfile\settings.json
[2021-08-23 11:44:05.476] [verbose] Copy C:\Users\XXXXXXXX\Joplin\JoplinProfile\keymap-desktop.json
[2021-08-23 11:44:05.478] [verbose] Copy C:\Users\XXXXXXXX\Joplin\JoplinProfile\userchrome.css
[2021-08-23 11:44:05.480] [verbose] Copy C:\Users\XXXXXXXX\Joplin\JoplinProfile\userstyle.css
[2021-08-23 11:44:05.483] [info] No templateDir, Joplin >= v2.2.5
[2021-08-23 11:44:05.484] [info] Select notebooks for export
[2021-08-23 11:44:05.489] [verbose] Add 'LAVORO' (651d3340ca254cbb9f1574436e6b4761)

[---8<------8<------8<------8<--- SNIP! ---8<------8<------8<------8<---]

[2021-08-23 11:44:05.584] [verbose] Add 'Imported Templates - 23/08/2021' (adf9634c660a49efa969f2b6160045cc)
[2021-08-23 11:44:05.585] [info] Create single file JEX backup
[2021-08-23 11:44:16.258] [info] Create zip archive
[2021-08-23 11:44:16.260] [verbose] Add C:\Users\XXXXXXXX\Joplin\JoplinProfile\tmp\joplin_active_backup_job\all_notebooks.jex to zip C:\Users\XXXXXXXX\Joplin\JoplinProfile\tmp\joplin_active_backup_job\all_notebooks.jex.7z

UPDATE!

The backup seemed impossible to restart and the password kept disappearing.
It all seemed frozen.
As soon as I restarted Joplin (several times) the automatic backup started, but it was impossible to finish and the password kept disappearing.

To try to restart from a "clean" situation, I removed the check from "Password protected backups", I stopped Joplin, I deleted the backup logfile and the tmp directory, then I restarted joplin and the first automatic backup started and went successful.
So I reset the "Password protected backups", entered the password, launched a manual backup and everything was fine.
The only strange thing, no done message was showed.

Error message while creating backup (but backup file seems to be ok...)

Hello,
today I received this error.
image
The logfile don't add any info (it' is set to "error", but now I set loglevel to verbose, for the next error, if it came).

I see that the backup file was created but the name is strange: there's double extension:
image

The Plugin version is 1.0.1.
Joplin 2.1.8 (prod, win32)

Feature request: Allow building a version without 7Zip

Joplin has an open issue related to including several default plugins with the application. One of these plugins would likely be Simple Backup, however, the 7Zip dependency seems to be causing MacOS signing issues (see laurent22/joplin#8040).

Would you be open to a pull request that

  1. Allows building a version of the plugin without 7Zip
  2. Uses the built-in CompressionStreams or Zlib APIs for compression when missing 7Zip
  3. Either
    a. Uses the built-in Node or SubtleCrypto APIs for encryption (may be difficult for users to decrypt), or
    b. Disables the encryption option when missing 7Zip.

Thank you for developing this plugin!!

Selective backup

Is it feasible to allow selection of enabling/disabling certain notebooks from being backed up?
Additionally, if it is feasible to do add multiple pairs of notebooks and their backup locations, that will be even better :)

Encryption for backup

Hi,

Is there a possibility to encrypt the backups?
As I can see now, the content of the .jex files does not seem to be encrypted.
(But this is in line with the .JEX export that also has no encryption of the content.)
As a workaround, I now store the backups on a Veracrypt volume, but it would be nice if the backup used the standard encryption password.

Robert

Typo in README.md

I know this is very minor, but there is a typo in the "Restore" section of the README.md file:

The exact path can be found in Joplin under Tools > Options > Generla:

should be:

The exact path can be found in Joplin under Tools > Options > *General*:

Thanks for this very useful plugin. :-)

Plugin not working

I installed the extension from the Joplin app and manually but there is no backup tab in the options menu.
I use archcraft Linux.

Screenshot_2022-07-26-20-08-24_1680x1050

uname -r = 5.18.14-arch1-1

Automatic Backups Not Working in Linux Mint

I've been using the Simple Backup plugin with Joplin for a while now on two different machines and it's been working great. I just added Joplin 2.11.11 to a third machine running Linux Mint 21.1 and the automatic backups don't seem to be working in this case. Manual backups do seem to work just fine, however. I've tried deleting and reinstalling the plugin but that didn't change anything, and I've also rebooted the computer and application several times and waited for a long time to see if an automatic backup would eventually be created, but nothing seems to work.

jexExport Error

I recently updated to Joplin 2.7.13 (prod, win32) (windows 10). I now receive the following error when the backup is executed:

image

And no backup is created. Using "Simple Backup v1.0.5".

moveFinishedBackup: dest already exists.

single backup, no sub-folder.
the first backup is fine, with two folders: notes & profile.
the next backup pops up this message, with a joplin_active_backup_job containing notes & profile, while the previous notes seems to prevent the new notes to moved in place.

Enhancement Request: Add Backup Location option to ssh

I think there is a valid use case to want to make all backups to a server using ssh. Would it be possible to add this option to the 'Backup path'?

For example, Deja Dup provides the following backup target options:

image

active backup directory has to be renamed each time manually

The first two times it worked correctly. After checking, I renamed the target folder name and since then at each automatic backup the following error message comes and I have to rename the folder manually:
20230608 Joplin Backup error message
I have set the Keep x backups option to 7.

When backups are created manually, "Keep x Backups" is ignored.

When backups are created manually, "Keep x Backups" is ignored.

I would expect the "Keep x Backups" configuration to work for both manual and automatic backups.

EDIT:

It looks like the "Keep x Backups" is maintained separately for non-zipped and zipped.

Example: If you switch from non-zipped archive to zipped archives, the plugin ignores the non-zipped archives when counting the "x" number of backups. In this example, the plugin will presumably forever keep the old non-zipped archives too.

v1.0.1

moveFinishedBackup: EPERM: operation not permitted, rename...

Joplin 2.2.1 (prod, win32)
Windows 10 21H1
Simple Backup v1.0.1

I have this error message popping up regularly.

Error

It doesn't seem to have any impact on the backup itself. As far as I can tell, despite this message, backups are fine.

I found out a pattern when the message pops up. It happens :

  • when I start my computer in the morning
    or
  • when the computer comes out of sleep mode

These are the only times when this message appears as soon as I click the Joplin icon in the notification area. Other thant that, the rest of the time, the plugin run silently as expected without any error message.

Here are my plugin settings and the backup log file (verbose mode).

backup.log

Settings

single file for each note

is it possible to have a file for each note? I use the export for easy explorer searching since joplins own search is horrible.

Backups fail with exeption

Uncaught (in promise) Error: Unknown key: templateDir

In the Joplin pre-release v2.2.5 the Template function is removed.

Cloning settings

This is not a feature request or bug report, I was wondering if it was possible to transfer settings from my personal Joplin to my at work Joplin. They use different network store, pre-release vs secure release, but I would like an easy way to get the userchrome and usersettings including fonts, plug-ins and other interface settings backed-up and restored from one to the other?

Encrypted backups can't be decrypted, when password contains certain special characters

Edit: I am currently using Version 1.20 of the extension. I am currently not able to update so can't confirm whether this was fixed.

I am doing encrypted backups with your extension. Unfortunately, when I tried to access a backup file (.7z archive, which is password-protected) I was not able to although the password was 100% correct. I tried unpacking with WinRAR and 7-Zip. Both failed for the 5 backups I had from the last five days. If I understand the errors of WinRAR and 7-Zip correctly, either the password is not correct or the file is damaged.

I don't know if the files are damaged. If they are, then this must be inflicted by a password containing certain symbols (see later).
I definitely used the correct password (I checked it in the Joplin settings, where you can configure the password for the backups).

The password I used for the encryption was:
VCe`,=/P<_+.7]~;Ys("

When I changed my password to a 'simpler' one, it worked. I tried the following:
AAAA

With AAAA, 7-Zip had no problem decrypting the backup file. So in conclusion, I suspect that the special characters (or at least some of them) hinder the process at some point. Maybe it damages the file or certain characters are simply not allowed in passwords for .7z files (but I am not an expert on that).

Side note: luckily I could restore my notes from the 'trash can' of my cloud.

For completeness:

WinRAR told me:
! C:\Users\hp\AppData\Roaming\Joplin\Backup\202306291517\all_notebooks.jex.7z: Prüfsummenfehler der verschlüsselten Datei C:\Users\hp\AppData\Roaming\Joplin\Backup\202306291517\all_notebooks.jex.7z. Beschädigte Datei oder falsches Passwort.

7-Zip told me:
C:\Users\hp\AppData\Roaming\Joplin\Backup\202306251526\all_notebooks.jex.7z
Das verschlüsselte Archiv "" kann nicht geöffnet werden. Falsches Passwort?
Headers-Fehler

use the backup file generated by the plugin to restore a complete Joplin environment

Since the plug-in does back-up more than just the notes (settings etc.), assume you want to use it later to reconfigure Joplin on a different computer, or on the same computer after some problem. So you install a fresh copy of Joplin, and you have the backup file in front of you. What next ?
Am I just missing instructions, or is all I have to do import the JEX file (including all settings etc.) ?
The descriptions don't seem to address this "typical user problem".

The masked password text is removed/hidden after restarting Joplin.

The masked password text for protected backups is removed/hidden after restarting Joplin.

There's no UI indication whether backups are going to be encrypted with my previously entered password or not. Looks like the file will be encrypted with an empty password, because the field is empty.

I would expect the password field to appear just like it did prior to restarting Joplin, with the password field masked.

  1. Enter password.

  2. Apply/Ok settings.
    image

  3. Exit and restart Joplin.
    image

Joplin 2.1.9 (prod, win32)
Simple Backup v1.0.2

Backup fails on Linux for notebooks with forward slash in the name

On Linux, if a notebook name contains a forward slash, the backup fails with:

Backup error
Error: ENOENT: no such file or directory, open /path/to/notebook_name_2020/2021.jex

I'm assuming it's because the slash in the file name is not escaped and treated as part of the path.

OS: Ubuntu 20.04
Joplin version: 1.6.7
Plugin version: 0.3.0

backup folder contents erased

I installed backup plugin on different PC;
with "keep X backups" ticked, after executing manual backup, ALL OTHER files in folder specified were erased (it worked fine before on different PC, keeping last 7 backups only); for some reason different combination of options caused deletion of all other files in the "backup" folder
fortunately I was able to recover it as it was on OneDrive
if it is intended plugin behavior, I strongly advise to put additional explanation about

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.