Skip to content

S3 Primary storage backup #10022

Description

@umardraz

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?

Activity

  1. nextcloud-bot commented on Jun 27, 2018

    @nextcloud-bot
    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).

  2. MorrisJobke commented on Jun 28, 2018

    @MorrisJobke
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions