A Plugin for Discourse that does a backup to your Nextcloud account
- Make sure you have the latest version of Discourse set up properly
- Install the basic-sync-plugin first
- Clone this repository into your discourse/plugins folder
- In the browser go to your Admin Settings and then to Plugins. You should see the discourse-sync-to-nextcloud appearing there
- Click in Settings and enable the plugin. Choose the quantity of backups you want to synchronize.
-
Pick a Nextcloud provider and sign up for an account. You can also install your own Nextcloud server.
-
In your
discourse-sync-to-nextcloud/config/initializers
folder create a new file calledocman.rb
with the following code:
Ocman.configure do |config|
config.base_url = 'https://put your provider url here.org'
config.user_name = 'you username for the provider'
config.password = 'your password'
## Optional: (When nextcloud wasn't installed on website root.)
# config.dav_base_uri = '/path/to/nextcloud-root/remote.php/webdav/'
end
and fill it out with your new credentials for the provider. Make sure you don't publish this file anywhere (eg. have it in the gitignore).
- In your Discourse settings click on backup and make sure you have enough storage space.
This plugin was created by Jen and Kaja, in analogy to the discourse-sync-to-dropbox plugin from Falco
For help please go to Discourse Meta