mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-11-29 18:58:35 +08:00
s3 endpoint dont joint bucket
This commit is contained in:
parent
59deab39ca
commit
436b3a05e9
@ -54,6 +54,7 @@ func runArchive(cmd *cobra.Command, args []string) {
|
||||
Region: aws.String(region),
|
||||
Endpoint: aws.String(endpoint),
|
||||
Credentials: credentials.NewStaticCredentials(access_key, secret_key, ""),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Printf("Connect S3 Error!\n%v\n", err)
|
||||
|
@ -54,6 +54,7 @@ func runRestore(cmd *cobra.Command, args []string) {
|
||||
Region: aws.String(region),
|
||||
Endpoint: aws.String(endpoint),
|
||||
Credentials: credentials.NewStaticCredentials(access_key, secret_key, ""),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Printf("Connect S3 Error!\n%v\n", err)
|
||||
|
@ -68,6 +68,7 @@ func runArchive(cmd *cobra.Command, args []string) {
|
||||
Region: aws.String(region),
|
||||
Endpoint: aws.String(endpoint),
|
||||
Credentials: credentials.NewStaticCredentials(access_key, secret_key, ""),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Printf("Connect S3 Error!\n%v\n", err)
|
||||
|
@ -51,6 +51,7 @@ func runBackup(cmd *cobra.Command, args []string) {
|
||||
Region: aws.String(region),
|
||||
Endpoint: aws.String(endpoint),
|
||||
Credentials: credentials.NewStaticCredentials(access_key, secret_key, ""),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Printf("Connect S3 Error!\n%v\n", err)
|
||||
|
@ -52,6 +52,7 @@ func runRestore(cmd *cobra.Command, args []string) {
|
||||
Region: aws.String(region),
|
||||
Endpoint: aws.String(endpoint),
|
||||
Credentials: credentials.NewStaticCredentials(access_key, secret_key, ""),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Printf("Connect S3 Error!\n%v\n", err)
|
||||
|
Loading…
Reference in New Issue
Block a user