History

docs:upload --rclone

https://rclone.org/s3/#s3-no-check-bucket > `--s3-no-check-bucket` > If set, don't attempt to check the bucket exists or create it. > It can also be needed if the user you are using does not have bucket creation permissions.

Simon Legner committed 1 year ago

Commit 85f519e1 parent 96a10591 file · +1 −1Browse files

Unified · Split

lib/tasks/docs.thor+1−1
@@ -210,7 +210,7 @@ class DocsCLI < Thor · 209 unmodified lines
210 cmd << ' --dryrun' if options[:dryrun]210 cmd << ' --dryrun' if options[:dryrun]
211 if options[:rclone]211 if options[:rclone]
212 puts "[S3 bundle] Uploading #{filename} using rclone..."212 puts "[S3 bundle] Uploading #{filename} using rclone..."
213 cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/"213 cmd = "rclone copy #{File.join(Docs.store_path, filename)} devdocs:devdocs-downloads/ --s3-no-check-bucket"
214 cmd << ' --dry-run' if options[:dryrun]214 cmd << ' --dry-run' if options[:dryrun]
215 end215 end
216 system(cmd)216 system(cmd)