Security improvements for paranoiac

Is it possible to make synchronization on demand, with explicit synchronization confirmation on both ends: NextCloud and PC/mobile phone?
Synchronization could be initiated via UI of NextCloud portal or via UI of the PC/mobile app. But that initiated synchronization is to be confirmed via UI on both ends: NextCloud and PC/mobile phone?
I would prefer to synchronize my data say once a week or daily, having changes committed into NextCloud like Source Control systems (like Git or SVN) do.
I would like to control what files exactly are being synchronized.

I have about 50K files to store/sync. Imagine that I get some sophisticated virus on my PC which would slowly but surely be corrupting data in my files. By the moment I figure it out (several days of weeks) this virus may corrupt thousands of my files and they immediately would be syncted to NextCloud and ALL other my devices (as synchronization works now).
Just imagine how much time it would take for me to go through all of the changes history on NextCloud portal and file-by-file manually roll back to closest valid version.

On top of this, imaging that you have a virus corrupting data on one of your devices – and that wrong data would be immediately synced into your ALL devices.
The more devices you have the more chance to get a virus and more chance to get your data corrupted on your ALL devices and more chance to almost lose your data.

Confirmation on both sides would be helpful
a virus on your PC is corrupting data in your files and is silently trying to synchronize the changes into NextCloud; unless you confirm on NextCloud side (over web UI) this synchronization it would not complete.
And vice-versa, a virus could potentially get to your NextCloud – in this case your PC/mobile app will not allow synchronization without your confirmation.

With sync on demand the history would be much shorter and more granular and as a result - more controllable.

Bye bye to the cloud and welcome again to file sharing on demand?

Please make sure to refine your requirement by making yourself more familiar with the concepts of Cloud storage in general and the Nextcloud Files cloud storage concepts in particular, I would suppose. This may help to enable a more fruitful discussion in the future, I would hope.

Why don’t you run an antivirus software on your Nextcloud server? There is an app that scans files from within Nextcloud too.

Actually I need a backup system working the similar way as a versioned source control systems (like Git). Roles: Server – a machine where backup is stored, Client – the machine where we have data to backup.


  1. Client doesn’t have direct file access to Server;
  2. There is a specific protocol between Client and Server which describe file operations (CUD): Create, Update, Delete, – as well as Read;
  3. Server stores the history of changes. Every item of the history is a change-set. A change-set consists of a set of file CUD-operations. Every change-set is atomic;
  4. Explicit confirmation of synchronization (pool/push) on both sides: Client and Server.

Git/SVN would work but there are many unneeded things for just Backup. For example you normally don’t need to make a comment to any change. The same time Git/SVN doesn’t have confirmation of push operation on the server side.

Idea! Maybe push operation per se must be totally forbidden? Maybe only pool would be permitted in this protocol. In this case push from Client to Server will be replaced with pool to Server from Client. In this situation no additional confirmation (on Client and/or Server sides) is needed because pool operation is always initiated on the side being modified. It would be explicit, it would be virus proof, it would be safe, it would be controllable. Even if we would make pool via Web UI of that Server.

Antivirus software will not help if you get a virus/malware on your Client. It could make a big mess on Server (NextCloud). What if that virus makes a million changes in tens of thousands of your files within extended period of time. In this situation NextCloud history will be flooded and totally useless for a human. And since the period of time is extended, the good changes and bad changes would be totally mixed in that flooded history.

@yshpakov IMHO there is too much in demand and too few difference and too many requirements in contradiction, unfortunately. This does not fit into a reasonabel frame, certainly not a so called “home user”. You should set your priorities.


It would be a grave misunderstanding if one would presume the below pairs of terms (i.e. tuple) would meet the same domain for each pair i.e. line.

  • cloud storage - backup
  • backup - archive
  • version control - archive
  • version control - cloud storage
  • database - archive

However, the above tuples may be incomplete. Some items would be even mutual exclusive.

Furthermore, IMHO one should be familiar with concepts like:

However, this tuples cannot be mandatory and may be incomplete.

Hope this helps.

From your first post, that is the answer I would give you.

rsync can do a lot, there is for example rsnapshot ( that only downloads the changes since last time, identical files are just linked. This way, you can have a history of backups (so you can go back an hour, a day, a month or a year). There is a whole family of these programs with small differences, chose your preferred one.

Ideally the backup server gets the data, so that an intruder can’t compromise your backup.

1 Like

Ideally the backup server gets the data, so that an intruder can’t compromise your backup.

So the backup server would pool data from the source. Not the source would push the data into the backup server?

Please reconsider. You would go in circles and no true backup. The push could write/change/delete any data obviously. This appeared as if some of the core arguments of your own, didn’t it?

Have a look on some more reasonable articles from the more reliable service providers. The below listed article is worth a reading and just an example of many.

Backups ensure that your critical data will survive any of the likely hazards.

Furthermore, there should be some sustainable storage concept if you truly want to have long time archiving of backups (> 10 years). There is much more to consider if you want to do this seriously.

Please continue in looking around and you may accomplish more from some research of your own in the long run. Good luck.

Well. Only versioned backup solutions will help against malicious file edits. What’s the problem with this?


I do file system snapshots every hour for a week
Each snapshot is read only. They are all sent to a backup server.
The backups are then pruned to keep daily snapshots for a month and then weekly for a year.

All very easy to do with Btrfs or ZFS filesystem builtin features.

Obviously you also need antivirus on your server and if possible on the clients.

1 Like ( rclone only if you are not satisfied with the choice of restic supported target.

@yshpakov FYI