desktop icon indicating copy to clipboard operation
desktop copied to clipboard

nextcloudcmd with list of folders to sync

Open avibrazil opened this issue 3 years ago • 3 comments

nextcloudcmd has the --unsyncedfolders to pass the list of folders to exclude from syncing.

I miss a way to pass a list of folders to sync, because I need to sync just a few folders, not my entire cloud.

Currently, if I need to sync 10 folders I need to run 10 different nextcloudcmd. This feature would let me run 1 nextcloudcmd to sync all these 10 folders.

Or, even better, a unified file format to define what to sync and what to not sync. For example:

+/folder1
+/folder2
-/folder2/hugesubfolder
+/folder3

Would sync only /folder1, /folder2 and /folder3 and would skip /folder2/hugesubfolder.

Of course this is just an example and suggestion. This format might be weak and not too generic.

avibrazil avatar Jul 26 '22 13:07 avibrazil

Hello, i'm also looking for a solution with it, i have also an error message when using the unsyncedfolders, what's the format you used for this function, i can't find on internet an example of the formating and the format of the files to be used with it.

Thanks in advance.

lvanvaeck avatar Aug 31 '22 05:08 lvanvaeck

Any updates or thoughts on this?

avibrazil avatar Sep 18 '22 12:09 avibrazil

it might be better to adopt the familiar .gitignore:

*
!folder1
!folder2
folder2/hugesubfolder
!folder3

jkt628 avatar Feb 19 '24 12:02 jkt628