Ok I need some help with NextCloud

What I'm trying to do seems very simple, but it's driving me crazy and I'm almost certain that this is why I gave up on this last time:

I want to have a folder on my Mac, where whenever I drop something in it, it syncs to the NextCloud server at a specified location, then I can DELETE it from my Mac, and it STAYS on the server.

The only option I seem to have is full sync, which essentially defeats the entire purpose of external storage. I *know* there has to be a way to do this, but having set it up a couple of different ways from both my Embassy side and from my Mac side, I always get the same result, which is really unnerving because having all my stuff get deleted is the very thing I'm trying to avoid.

Any help will be greatly zapped.

Reply to this note

Please Login to reply.

Discussion

tagging nostr:npub126ntw5mnermmj0znhjhgdk8lh2af72sm8qfzq48umdlnhaj9kuns3le9ll

Tagging nostr:npub1w5hwgjdfyqy4u7lwvu30dv0treehkmfvaqdc4fs38gll6c8xgxwq7vs86l

I have auto upload folders on my phone that work like this. Not sure if it works on my pc. I'll try.

So do I, but if I delete something from my phone, it also deletes it from the Start9.

One workaround is to create a folder in the cloud, make a File Drop only share link and drop files into the browser. Change sync settings to not sync that folder on the local machine.

I just thought of that. Lol

This seems so absurd to me. Literally 99% of anything I've ever wanted about a remote storage option has always been about having automatic storage of the photos and files on my everyday devices, but being able to selectively remove things when I'm out of space **without losing them.**

And every single time I try to get another app or service that fixes this, I'm just certain that somehow I'm stupid and just can't figure this out and everyone else MUST have the solution. There's just got to be a button sitting there that fixes this. And yet every single time I waste hours or end up being told I need to pay for X or setup a huge NAS machine (which I've already done and is equally unreliable).

I just cannot comprehend how this is such a difficult problem. And I don't know why anyone wants to have a fully synced folder with all actions and deletions on their carry/work device with a home server or backup? Does everyone else just use this for 5 Gb max worth of personal pictures and never need anything more than that?

I want to have many of my files with me for when I am working offline. I also want to be able to delete things while offline and not have to delete it on the server side when I get back online, because I'm not going to remember all the files I moved or deleted.

I do not have enough storage on my laoptop to hold all my files, so I only sync a subset of folders. If I ever run out of space locally, I just uncheck the sync on a large, not-currently-used folder. The files are deleted locally and remain on the server and I have my free space.

For things that I download and want to keep a copy of, but the folders they go in are not synchronized, they just sit around on disk until I go through and upload them via the web UI. There is a risk of data loss here, but I have that covered by my backup systems, which I seldom use, but it's really important when I need them.

So that's how I use cloud storage for files. It's not going to fit everyone's needs, but maybe you can see if there is something there that might help you.

This is the option for the mobile app (dont think it is available for desktop).

The Nextcloud is not iCloud. Doesn't synchronize, it is like a NAS or SMB drive.

That's exactly what it does actually and its the only thing I *can* get it to do right now. It would actually be nice if all I was doing was manually dumping files and folders, but every time i try to do that with an entire folder I just get an error. And doing it manually with all of my files is jsut so tedious it defeats the purpose.

I think a "file drop" only share is your best bet.

I dont see this option anywhere when selecting or setting up folders.

So, Nextcloud is not just a "backup". This is for a complete teamwork app. You can share files, sync your contacts and calendar from the phone (see DavX5), organize meetings, yku can use password manager, seeing and organizing photos, listen uploaded music, even track your bycicle tours on a map.

Nextcloud is written in PHP so it is fast (with memory caching it could be even faster - see: Redis).

There are apps for mobile not just Nextcloud client. See the app stores (if you have Android, see F-droid).

There are tons of plugins, addons, e.g. connect to weather service provider, Reddit or Twitter (oops: X) account etc.

💡💡💡BTW: #devs - a Nostr connector to Nextcloud should be developed too ⚡⚡⚡

Im using the web ui (nextcloud all-in-one). When sharing, there are access option.

And the mobile app

FTP...

I've never had this specific use-case. The closest thing I can think of is to turn off sync for that folder. Then you can delete files locally without having them deleted server-side ("in the cloud" ugh).

But this is per folder, so the whole folder then no longer syncs until you turn it back on. And if you turn it back on, I don't know what's considered the source of truth, but logically I think it should be the Nextcloud server, so your local folder should then be repopulated with files you deleted locally.

Not sure if that's OK for you, but it's the best I can think of.

You could use something like WinSCP to do periodic pushes via webdav.

also one option is syncthing

https://docs.syncthing.net/v1.23.7/users/versioning

version "forever" on the device you want as your forever archive

file is deleted on you local folder but the nextcloud version of the folder will version it forever

the one caveat here is described in the docs: archiving only works as a forever version of the file was deleted on a different device. if you delete the file directly on next cloud it will be permanently deleted

It sounds like you need a backup solution. Nextcloud syncs to make sure folders are the same. What you are describing exists in Syncthing. It has a mode to copy to a client and never delete.

sigh... so i need something completely different?

I'm a huge Nextcloud fan and run a server for my local community, but yeah I think you probably do, given your use case.

If you can share a little more about how you want to use it, maybe we can find something that'd be a better fit.

Do you want to access these files on other computers, phones, tablets, etc.?

Do you want to share them with others?

These are both things Nextcloud does well but backups do not accomplish. It's possible you want both.

I think your best bet would be to drag those files to a browser loaded with Nextcloud instead of dragging them to a folder.

As you've pointed out, Nextcloud wants to sync, which means any change on either side is replicated. This is a core design goal of the software, so it's unlikely to ever get a feature which would violate that goal.

The suggestion of using scp or similar is not going to work at all out of the box and not work well even with customizations. The files on the server are stored on disk, but there's also an SQL database that indexes them. Using scp (or FTP or whatever) only gets you part way there.

If you go this route, you can put the Nextcloud command to rescan the disk in a cron job or systemd service/timer, but be warned that scanning takes quite a long time to run. So if you want to use your files on another computer within a day, this isn't going to go well. If it's just making sure you have a copy for later, then that could work.

Remore mounting is absolutely not what you want, as deleting the files would remove them from tbe server (and without removing the index at that).

Finally, if you are just looking for backups, I can recommend borg (and borgmatic if it's available for macOS). It's completely separate from Nextcloud, but it ensures you have a copy of your data. It also supports compression, encryption (client side), and de-duplication! You can also mount old snapshots of your files in case you want to just pull out one version of one file without having to restore an entire directory or machine.

Nextcloud is exatcly for this (and much more). Upload via the Nextcloud app. The mobile app can autoupload too. I use it for years

Buy a synology or other NAS. Back it up on back blaze. Delete Nextcloud.

I think the best method is to use a shell script. Something like this:

```

ls path/to/files|xargs scp -R remote.ssh.server:/path/to/backup && rm path/to/files/*

```

This way if it gets stuck, it won't do the delete, and you can run it again after you deal with the error. If you used a remote file mount, anything at all, sshfs, SMB, whatever, you could take advantage of `cp -rfvpu` and preserve the permissions, and it would not copy the file if it was the same size and creation date as the original.

To be honest, scp is crappy.

You could also use `rsync` it has this functionality you seek, all in one, I believe.

I really appreciate this suggestion!... but I have to ask... how in the fuck do I need to have a shell script to do this? Isn't this the whole point of cloud storage? (I'm not at all annoyed with you btw, I just can't believe this functionality requires terminal commands or bash scripting)

The confusion is around "storage" as in "offsite" versus "synchronised".

It's not the same as moving files around your disk, you can't just change the directory they are attached to, they have to be copied, and then it's optional if you delete them.

Your use case is not the one that relates to the expression "sync".

Also, is there really any reason why you don't just do it with a USB disk?

And the command line is the simplest way to do it. The GUI is designed for people with high time preference, to put it succinctly. Computer programmers and administrators have naturally lower time preference.

I use the Nextcloud with bind mounted smb drives.

But I steal your shell script 😁, its simple and it seems effective

I would suggest, that you mount your Nextcloud as a WebDAV remote drive, then you will not use any local storage on you Mac. Is working for me like acharms on Linux and Windows. 🙏🏽

ok this might be closer to what I'm looking for. I'm investigating thank you

Alternative approach. Why not upload files directly into a SMB share that is mounted inside of #Nextcloud using browser Web GUI? Just configure client not to sync that share locally. I do this with files I don't need all the time, but might want to pull something like an appliance PDF manual one in a blue moon.

probably try syncthing only send folder

https://docs.syncthing.net/users/foldertypes.html

Many good explanations here already. The phone nextcloud app does what you're saying, you can delete it locally from the phone (and be given the option to delete from the server too if you like) - on desktop app there isn't the option.

Conversely you can set the desktop app to auto-sync i.e actually download anything that gets put on the server, whereas phone app will always require that you manually download anything you want to have on the phone locally.

I agree that this is obvious functionality in both cases that is lacking, but go look at the github. People have been complaining about it for years.

Um… what am I looking at? 😄

It’s the worlds largest solar powered computer!

Watly is a machine that filters contaminated water, Provides solar electricity, And internet service.

The next step is to present to Nayib Bukeli in El Salvador for bitcoin city.

Can you share it with anyone you know that can help us connect with the President?

Marco Attisani built a full scale version of this rendering in Udine, Italy, And because of controversy in the media, He had to abandon this movement there, And is back in Sao Palo, Brazil. The next step is to build this vision on Bitcoin in El Salvador and provide public infrastructure for the people there.