Nextcloud version: 19 (via snap)
Operating system and version: Ubuntu 20.04
I have Nextcloud running on my server with an Object Storage set up as primary storage.
On a daily basis, I would like to back up to another server all files that were added or modified during the last 24h.
As my files are stored in an Object storage and not on the server where Nextcloud is running, I do not see any files in the local Nextcloud data directory (as expected).Therefore I cannot run local commands like find . -mtime -1.
Would you have an idea of how I could achieve such a backup (maybe using webdav)?
Any suggestion or similar experience welcome!
for my understanding you choose s3 storage as primary storage because it’s cheap and durable. so you don’t need a backup for the files. s3 is save by design. that’s at least what marketing is telling about it.
but if you loose your database your data are lost. because the translation urn:oid:xxx <-> real folder/file.name is stored in a table in the database.
if you want to copy all s3 objects anyhow you may have a look at rclone.org
if you still want incremental backup look at restic.net.
you could configure a backup of your nc s3 bucket into a second bucket with both tools. plus the database backup.
but i’m not sure that’s a good idea.
aws s3 allows you to copy all objects to another region. out-of-the-box. does ovh s3 storage allow the same?