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

S3 Primary storage backup #10022

Closed
umardraz opened this issue Jun 27, 2018 · 2 comments
Closed

S3 Primary storage backup #10022

umardraz opened this issue Jun 27, 2018 · 2 comments

Comments

@umardraz
Copy link

Hello

I am using S3 bucket as primary storage for my NextCloud. I realized NC saving files into S3 bucket as uid:oid:xxx.

Now my question is how I can backup of my S3 bucket on daily basis and then what I need to do so I can download/retrieve a specific file/folder from that backup?

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4730 (Storage), #7585 (S3 as primary storage : empty files are impossible to upload), #60 (Configuring S3 and OpenStack Swift as Primary Storage), #3748 (Primary S3 Storage Backend + Encryption problem with file size, mimetype and first download failed), and #9808 (Minio Issue with S3 external storage module).

@MorrisJobke
Copy link
Member

I am using S3 bucket as primary storage for my NextCloud. I realized NC saving files into S3 bucket as uid:oid:xxx.

Now my question is how I can backup of my S3 bucket on daily basis and then what I need to do so I can download/retrieve a specific file/folder from that backup?

Usually only via a restored nextcloud instance. The path is stored in the file cache which holds also the folder structure. The files are then stored by their ID in the object storage.

Easiest approach is: restore the nextcloud instance in a separate setup and use that to fetch the needed files
Advanced approach: scrape the oc_filecache table and build the folder structure by hand (parent is the parent element of a file and then you can build the file tree from that) and then fetch the related file IDs from the object storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants