Does someone has already succeeded to link a Swissbackup (S3 storage supplied by Infomaniak) with Nextcloud ? I tried both the Nextcloud app for S3 storage and direct in config.php file of NC but both fails. Here is config I did in config.php but it blocks NC stating an error and nothing shows up in NC/Apache logs
Additional question: is it what I understand in documentation ? you use either local storage with data directory or a remote one but not both ? as I wanted to use the external storage to extend the data storage
i might be reading your setup wrong, but External Storage sounds closer to what you want than the objectstore block in config.php.
the objectstore setting makes S3 the primary storage, so i’d be careful adding it to an existing instance. External Storage should let you keep the current local data and add the S3 bucket as a separate folder.
a few details may be worth checking:
hostname: s3.swiss-backup02.infomaniak.com, without https://
SSL enabled
port 443, unless Infomaniak shows a different one
the exact bucket name from Infomaniak. it may be default rather than nc-test
Thanks for clarification and yep you are true External Storage is what I need there as the NC are already existing.
I guess I’ll need to mount the new S3 storage on existing NC instances, move as much of directories/files from the data storage to the new S3 directory using the occ file:move or copy, and then I can move the shrinked NC to the new hosting and I’m all good
Thanks for the tips, will try and check how it goes
I confirm it works but not at all as expected. It’s a shared storage with all users on NC, there are no rights nothing, everyone can drop files in it and everyone has access to it
I was expecting it to work like regular storage in NC !
Thanks I checked again the documentation you pointed and all I can see is the use of the home directory feature but the parameter doesn’t exist in Settings of the storage in Nextcloud It looks to be avalaible only for some specific storage system and not S3 for sure
you first post sound you are trying to configure s3 as “primary storage” which is covered here:
“There be dragons!” as such setup is quite rare for self-hosting be prepared for try and error if you don’t have access to professional support from NC.. I’m pretty sure it is only possible on fresh install as didn’t see any migration steps till now. but if you happen to install this successfully our community will be really thankful about your feedback on how it works and which steps are required.
Yeah it was my initial wish but then as you state it that it can’t be used on an existing NC instance which is my case so I’m trying the other solution where S3 storage is used as extension of the existing data directory but unhappy it’s a shared volume through all users (all users have access at the additional storage without any restrictions). They state in documentation you can use a $USER parameter but it doesn’t look to be usable with S3 storage (well the configuration window doesn’t accept that