nextcloud / nextcloud/desktop

nextcloudcmd with list of folders to sync

Closed
#4,780 6 comments 2 reactions 0 assignees View on GitHub
feature: :white_square_button: nextcloudcmd good first issue
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 21h
Merged PRs (30d)
127

Description

`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.

Contributor guide

Open the contributing guide

Research direction

Start at the nextcloudcmd CLI handling for --unsyncedfolders and trace how its exclusion list reaches sync selection. The issue leaves open whether to add an include-folder list or a unified include/exclude format, so first establish the accepted syntax and precedence; done means one invocation can select multiple folders while excluding a nested folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.