Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync folders + subfolders #269

Open
iav opened this issue Sep 18, 2016 · 20 comments
Open

Sync folders + subfolders #269

iav opened this issue Sep 18, 2016 · 20 comments
Labels
enhancement feature: sync needs review Potentially out of date or duplicate and/or fixed or mostly fixed so needs a status update

Comments

@iav
Copy link

iav commented Sep 18, 2016

Currently option "make available offline" can be swiched only for files, not for folders.
Need a way to do it ffor folder tree.
And should be option to turn this off for some of subtrees.

@OlivierS1
Copy link

I concur.
"Set as available offline" should be extended to folders.

@tobiasKaminsky
Copy link
Member

We have #285 where we describe how to improve the current system to a real 2way sync.

@bkraul
Copy link

bkraul commented May 21, 2018

Just migrated from owncloud to nextcloud and found the folder 'make available offline' feature is not available on Nextcloud for Android. Any plans on implementing? This issue seems to be almost 2 years old.

@bkraul
Copy link

bkraul commented May 22, 2018

@tobiasKaminsky I don't mean to come across as offensive, but help me understand something. Nextcloud broke away from owncloud in part because owncloud was not listening to the community in a way that furthered the product. But yet, here we have a an almost 2 year old issue still largely unaddressed (one that owncloud has supported for a good while). So my question is, is nextcloud really more community-aware than owncloud is? I understand a comment like this does not make me look very nice (and I apologize for that), but I am just curious.

@TheLux83
Copy link

I want to throw my hat into this ring, too. I'm using Joplin and the direct synchronisation isn't very fast. So my idea was to make the whole Joplin folder offline available, but it seems, that this isn't possible. Please create a offline sync for folders!

@Tonus1
Copy link

Tonus1 commented Feb 16, 2019

@TheLux83 Exact same use case here!

@edmael
Copy link

edmael commented Sep 13, 2019

Hi, any news regarding this bug/feature request?

Having a whole folder available on the device is a major feature to have.

@iottt

This comment has been minimized.

@iottt

This comment has been minimized.

@tobiasKaminsky

This comment has been minimized.

@vincolus
Copy link

vincolus commented Nov 24, 2020

I tried synching my selfmade ringtones / notification sounds via Google Drive to my Smartphone. It's about 150 files and clicking each file and manually downloading it would take longer than developing that feature, I guess...

Sadly though, this feature and topic seem to have been buried!
I cannot really understand why, because it's nothing new and in my eyes nothing too difficult to implement.
There is/was dozens of applications capable of doing so, for example dropbox, owncloud, etc.
I even wrote my own, long time ago. One using wget and the later one using rsync.

So where is the big problem?

In linux you simply use rsync with the correct parameters, comparing modification date and creation date, ignoring permissions and that's about it! Heck, you could even embed rsync into an app that then does this for you I believe.
If you still do not believe people need this, then check out these works.
People did invest lots of time and trial-and-error to implement that

So it seems google has had an API that was capable of doing that, but they removed those features.
Still, people managed to code their way towards their goal. If that ain't dedication, then I dont know...

@Passaita
Copy link

Is there any change on the status or some workaround?

@joshtrichards joshtrichards added the feature: transfers [WIP] Any uploading / downloading matters that aren't auto upload or sync specific label Oct 12, 2023
@joshtrichards joshtrichards added feature: sync and removed feature: transfers [WIP] Any uploading / downloading matters that aren't auto upload or sync specific labels Oct 3, 2024
@joshtrichards joshtrichards changed the title Need option "available offline" for folders. Sync folders + subfolders Oct 19, 2024
@joshtrichards joshtrichards added the needs review Potentially out of date or duplicate and/or fixed or mostly fixed so needs a status update label Oct 21, 2024
@timkrief
Copy link
Member

timkrief commented Oct 28, 2024

This usually doesn't work for me, but I decided to try a minimal reproductible example and it did work:

Folder
|-- Subfolder 1
| |-- File.txt
|-- Subfloder 2
| |-- File.txt
|-- File.txt

I tapped sync for the main folder and everything synced.
This was surprising to me because this did not work for other cases and I don't know what caused that, if that happen again, I'll try to investigate.

An issue is that there is no indication of the current sync status of a folder after the blue syncing one, even if everything is synced inside it doesn't show a green tick (I'm not sure but I think that was the case before).

Using version 3.30.2
Hope this helps.

@Werewolfke
Copy link

Werewolfke commented Nov 22, 2024

This is still not solved? We have folders where we need to be able to make everything inside available offline, this works perfectly on pc, but we want to switch to more portable android tablets and this needs to be available as we are not always at a place where there is any connection to the outside world...

@Cosmopal
Copy link

Cosmopal commented Nov 23, 2024

+1 on this. We are trying to keep our content libray in sync across all devices and it is a little frustrating because we have to go to every subfolder for it to appear in the android files.

I see this item is still open in #285 . Maintainers @tobiasKaminsky @joshtrichards what is the challenge here? Is it too tricky to implement? Or is it just about developer manpower? If it's latter, I am happy to volunteer time for this. Please let me know if someone is already working on this else I can give it a go.

@ozturkkl
Copy link

Yes! Was going to start a new thread but found this:

  1. Syncing folder doesn't sync subfolders
  2. Syncing already synced folder re-downloads EVERYTHING
  3. Qustion: is there a way to keep the folder synced?

I'm on Android Samsung S24 Ultra. @Cosmopal please keep us posted. This is very much needed.

@dakotagrvtt
Copy link

I am curious too why this has not been implemented yet. I had to resort to downloading a music folder for a family member (which comes in as a zip file) from the browser instead of using the app because subfolder downloading still does not work.

Even a "download subdirectories" option would be preferable to prevent users from downloading very large folders by accident.

@one7two99
Copy link

Also reproducing the same behaviour while trying out Nextcloud as an alternative for some of our customers who want to "de-cloud" their services from SharePoint/Onedrive.
Would be great to get a feedback from the developers what is the major obstacle to implement this change (as the issue seems to be open since a very long time AND it looks like an actual basic feature if there is a sync button). If its money than maybe we can start a funding to get this implemented.
I am somewhat surprised that lots of features gets added to Nextxloud (Nextcloud Plugins) but something which is actually a core functionality (sync to local device) is kind of broken.
I thing it would rather make sense to remove the feature or maybe add a BETA to it as normal users will not understand why this is not working and might loose trust in the product.

@one7two99
Copy link

I run several other tests and even when I manually sync a folder before enabling Two Way Sync it is not working.
Sync period has been setup with 15min.
Even after waiting 8 hours a file which has been created on the android device within the folder which is enabled for two way sync will not be uploaded to the nextcloud server.

Can someone try to reproduce this problem:

  1. Sync a folder locally to the device
  2. Setting up two way sync via Folder > Details
  3. Enabling two sync in the nextcloud settings
  4. Create a file locally in the folder which has been synced to the device
  5. Wait until the two way sync period is over
  6. Check if file is available on nextcloud server
  7. If not, initiate a sync via nextcloud app
  8. Check if file is available on nextcloud server

I am running Nextcloud stable 3.30.7 (Jan/06 2025) on GrapheneOS.
Nextcloud App has been excluded from battery optimization.

@polandy
Copy link

polandy commented Jan 12, 2025

@one7two99
I followed the exact same steps as you. Unfortunately, synchronization is not working for me either. I'm using the Nextcloud client version 3.30.7 from the Play Store on Android 15 (Pixel 8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature: sync needs review Potentially out of date or duplicate and/or fixed or mostly fixed so needs a status update
Projects
None yet
Development

No branches or pull requests