-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop: Resolves #9857: Back up to a subdirectory of the home directory by default #9942
Desktop: Resolves #9857: Back up to a subdirectory of the home directory by default #9942
Conversation
…me directory by default
@@ -146,6 +146,7 @@ export interface Constants { | |||
pluginDataDir: string; | |||
cacheDir: string; | |||
pluginDir: string; | |||
homeDir: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that homeDir
is the best name for this setting...
Currently, homeDir
points to os.homedir()
only when not using the portable application (or the --profile
flag).
Converting to a draft for the next several hours — feedback was given on the upstream pull requests. I plan to make changes requested by that feedback and apply the changes here. Edit: Done. Now waiting for additional feedback. |
TODO:
|
Upstream pull requests have been merged! I'm in the process of updating and testing this PR! This should be done in the next hour or two. |
Great, thanks for the update! And thanks @JackGruber for reviewing and merging the pull requests! |
Summary
Updates the built-in Simple Backup plugin to apply the following upstream pull requests:
Resolves #9857.
Testing
Manual testing:
~/JoplinBackup/default/...
or~/JoplinBackup/default-dev/...
, otherwise, may be in a subdirectory of the profile directory)JoplinBackup
in the home directory (e.g./home/user/JoplinBackup/profile-a5ix52ns
)all_notebooks.jex
in the profile's backup directory with file > import JEXNote: The latest commit has only been tested on OpenSUSE (dev mode).
The above tests testing have also been done with commit 2e7b466 on:
It has also been verified (commit 2e7b466) that Joplin Portable launches on Windows and Simple Backup is still initially disabled. After enabling it, backups seem to be created in the profile directory.
Possible to-dos/considerations
JoplinBackup
directory and may overwrite one another (as both usedefault
as the ID of the default profile).-dev
to the end of the backup directory (e.g.~/JoplinBackup/default-dev
) when Joplin is in dev mode.snap
version of Joplin and an AppImage version? Do they both back up to the same place?snap
version will back up to a hidden home directory in/home/primary/user/joplin-desktop/[[version here]]/
, which will likely be difficult to restore from. Something similar may be true with the Flatpak.