sboesen / remotely-sync

fork of remotely-save with security upgrades
Apache License 2.0
212 stars 8 forks source link

Remotely Sync

Remotely Sync is a fork of Remotely Save, the unofficial sync plugin for Obsidian. At the time of forking the Remotely Save plugin was not actively maintained and some security improvements were made to Remotely Save - please see the list of security updates made to Remotely Save. Note this plugin is not backwards compatible with Remotely Save, save your data locally and have a backup before using this plugin. See migration guide instructions.

Note that some of the features will be merged into Remotely Save over time, and Remotely Sync is likely less stable at any point in time. If you want stability go with Remotely Save!

If you like it or find it useful, please consider give it a star GitHub Repo stars on Github.

Pull requests greatly appreciated! Please see Contributing to get started.

Disclaimer

!!!Caution!!!

ALWAYS, ALWAYS, backup your vault before using this plugin.

Security Updates from Remotely Save

Features

Limitations

Migrating from Remotely Save

The easiest way to migrate from Remotely Save (or other forks) to Remotely Sync is:

  1. Make a local, unencrypted backup of your files (make sure to synchronize all changes across your devices)
  2. Disable the remotely-save plugin
  3. Enable remotely-sync and set a new encryption password
  4. Delete the encrypted files in your cloud provider (or make a new S3 bucket in this case)
  5. Perform a sync using remotely-sync

Credit

Questions, Suggestions, Or Bugs

You are greatly welcome to ask questions, post any suggestions, or report any bugs! Pull requests also greatly appreciated. The project is mainly maintained on GitHub:

Download and Install

Contributing

Please see our GitHub project for a prioritized list of issues.

General priorities (may change): P0: Top priority, sync broken or risk of data loss for all remote providers. P1: Issue or major feature gap for all providers, usually has workaround P2: Sync issue for some providers but not all, or for some users but not all P3: Nice to have, or cosmetic issue. Does not impact sync.

Building the project:

git clone https://github.com/sboesen/remotely-sync
cd remotely-sync
npm install

Running development build (watches for changes and recompiles)

npm run dev2

Building a production build

npm run build2

Testing:

cp main.js styles.css manifest.json /your/path/to/vault/.obsidian/plugins/remotely-sync

Open development tools and Cmd+r or Ctrl+r to refresh the Obsidian app, quickly reloading the plugin.

Usage

S3

Dropbox

OneDrive for personal

webdav

Alibaba Cloud OSS and Minio

Scheduled Auto Sync

How To Deal With Hidden Files Or Folders

By default, all files or folder starting with . (dot) or _ (underscore) are treated as hidden files, and would NOT be synced. It's useful if you have some files just staying locally. But this strategy also means that themes / other plugins / settings of this plugin would neither be synced.

You can change the settings to allow syncing _ files or folders, as well as .obsidian special config folder (but not any other . files or folders).

How To Debug

See here for more details.

Troubleshooting

password_not_matched

If you get a password_not_matched error while syncing, try:

  1. making a backup of your vault
  2. removing the vault folder on your remote sync service
  3. syncing again.

Bonus: Import And Export Not-Oauth2 Plugin Settings By QR Code

See here for more details.