Nextcloud - how to set directory synchronization outside nextcloud? (sync of different directories)
Hello, is it possible to set up the nextcloud client to synchronize directories outside the nextcloud root directory? For example, to sync firefox, chrome bookmarks and pictures? Thank you
Hi,
so, nextcloud client allows to synchronize any directories across the system, it is done as follows:
1.) In the nextcloud client, in the main directory settings, click "three dots" - Remove folder sync synchronization
2.) Then add Add folder sync connection and select any directories in the system you want to synchronize.
-------------------------------------------------- ---------
Regarding Firefox bookmarks and passwords synchronization, I do this by setting sync to the profile of the firefox profile via the nextcloud client here /home/rusty/.mozilla/firefox/sync/ = deliberately bypassing it ... And then I do sync scripts that I run through the start and end aliases on my notebook during startup and shutdown as follows:
1.) START
/home/rusty/Documents/data/scripts/sync-nextcloud-start.sh
2.) END
/home/rusty/Documents/data/scripts/sync-nextcloud-end.sh
3.) Alias
vim.bashrc
PS: I have this verified that it works well - but unfortunately one has to think of starting the start and end manually.
I was doing sync directly through symlink and hardlink and it didn't work ... Once something symlinky / hardlinky was still rewriting / deleting their connection and eg sync of the whole firefox profile is stupid in that it changes files very often and constantly something is being written to the nextcloud ...
REPLY
Hi,
so, nextcloud client allows to synchronize any directories across the system, it is done as follows:
1.) In the nextcloud client, in the main directory settings, click "three dots" - Remove folder sync synchronization
2.) Then add Add folder sync connection and select any directories in the system you want to synchronize.
-------------------------------------------------- ---------
Regarding Firefox bookmarks and passwords synchronization, I do this by setting sync to the profile of the firefox profile via the nextcloud client here /home/rusty/.mozilla/firefox/sync/ = deliberately bypassing it ... And then I do sync scripts that I run through the start and end aliases on my notebook during startup and shutdown as follows:
1.) START
/home/rusty/Documents/data/scripts/sync-nextcloud-start.sh
#! / bin / bash
rsync -av /home/rusty/.mozilla/firefox/sync/key4.db /home/rusty/.mozilla/firefox/rusty.default/
rsync -av /home/rusty/.mozilla/firefox/sync/logins.json /home/rusty/.mozilla/firefox/rusty.default/
rsync -av /home/rusty/.mozilla/firefox/sync/places.sqlite /home/rusty/.mozilla/firefox/rusty.default/
2.) END
/home/rusty/Documents/data/scripts/sync-nextcloud-end.sh
#! / bin / bash
rsync -av /home/rusty/.mozilla/firefox/rusty.default/key4.db /home/rusty/.mozilla/firefox/sync/
rsync -av /home/rusty/.mozilla/firefox/rusty.default/logins.json /home/rusty/.mozilla/firefox/sync/
rsync -av /home/rusty/.mozilla/firefox/rusty.default/places.sqlite /home/rusty/.mozilla/firefox/sync/
3.) Alias
vim.bashrc
end alias = "/ home / rusty / Documents / data / scripts / sync-nextcloud-end.sh"
alias start = 'home / rusty / Documents / data / scripts / sync-nextcloud-start.sh'
PS: I have this verified that it works well - but unfortunately one has to think of starting the start and end manually.
I was doing sync directly through symlink and hardlink and it didn't work ... Once something symlinky / hardlinky was still rewriting / deleting their connection and eg sync of the whole firefox profile is stupid in that it changes files very often and constantly something is being written to the nextcloud ...