File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -715,8 +715,18 @@ func (r *RusticBackup) createSecureS3ConfigFile(creds *remote.S3Credentials) (st
715715 }
716716 defer file .Close ()
717717
718- // Build S3 configuration - use server UUID for clean, deduplicated paths
718+ // Build S3 configuration - extract root path from panel-provided repository path
719+ // Panel provides: bucket/prefix/server-uuid, we need: prefix/server-uuid as root
719720 repoRoot := r .serverUuid
721+ if r .panelRepositoryPath != "" {
722+ // Parse the panel path to extract everything after the bucket name
723+ // Expected format: bucket/prefix/server-uuid
724+ pathParts := strings .Split (r .panelRepositoryPath , "/" )
725+ if len (pathParts ) >= 3 {
726+ // Take everything after the bucket (first part)
727+ repoRoot = strings .Join (pathParts [1 :], "/" )
728+ }
729+ }
720730
721731 // Create TOML configuration content for opendal:s3 backend
722732 configContent := fmt .Sprintf (`[repository]
You can’t perform that action at this time.
0 commit comments