{"id":364551,"date":"2024-05-21T02:19:15","date_gmt":"2024-05-21T02:19:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=364551"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=364551","title":{"rendered":"<span>\u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u0438, \u043d\u0443 \u043f\u043e\u0447\u0442\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430 \u0441\u044b\u0440\u043e\u0432\u0430\u0442\u043e\u0435, \u043d\u043e \u0443\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0442\u043e\u0447\u043d\u044e, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0433\u043e\u0432\u043e\u0440\u044e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u043e\u0432, \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0442\u0438\u043f, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 S3. \u0422\u0443\u0434\u0430 \u0436\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0438\u0448\u0443\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043f\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>\u0422\u043e, \u043e \u0447\u0435\u043c \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Capyfile. \u042f \u0431\u044b \u043d\u0430\u0437\u0432\u0430\u043b \u044d\u0442\u043e \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0435 \u043d\u0443\u0436\u0434\u044b. \u041a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/capyfile\/capyfile\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>. \u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0441\u0435 \u043d\u0430 Go. \u0418 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c, \u043d\u0443\u0436\u043d\u044b \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0435 \u0432\u0435\u0449\u0438:<\/p>\n<ol>\n<li>\n<p>\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0438\u0439 \u0447\u0442\u043e \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u043d\u043d\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h2>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430<\/h2>\n<p>\u041a\u0430\u043a \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u043d\u0435\u0435, \u043f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u044b \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u043d\u0438\u043c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442. \u0410 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0432\u0443\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 &#8212; YAML \u0438 JSON.<\/p>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a.<\/p>\n<pre><code class=\"yaml\">--- version: '1.2' name: photos processors:   - name: archive     operations:       # read the files from the directory       - name: filesystem_input_read         params:           target:             sourceType: value             source: \"\/home\/user\/Photos\/*\"       # check the file type       - name: file_type_validate         params:           allowedMimeTypes:             sourceType: value             source:               - image\/jpeg               - image\/x-canon-cr2               - image\/heic               - image\/heif       # if the file type is right, upload the file to S3       - name: s3_upload         targetFiles: without_errors         params:           accessKeyId:             sourceType: env_var             source: AWS_ACCESS_KEY_ID           secretAccessKey:             sourceType: env_var             source: AWS_SECRET_ACCESS_KEY           endpoint:             sourceType: value             source: \"s3.amazonaws.com\"           region:             sourceType: value             source: \"us-east-1\"           bucket:             sourceType: env_var             source: AWS_PHOTOS_BUCKET       # if the file type is right, and it is successfully uploaded to S3,       # remove the file from the filesystem       - name: filesystem_input_remove         targetFiles: without_errors<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u044b \u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0421\u0430\u043c\u0430\u044f \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u2013 \u044d\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441. \u0417\u0430\u0442\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b, \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043a \u043d\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f. \u041e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0438\u043c\u0435\u043d\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u0438\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c (\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u0441\u043b\u044d\u0448 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430). \u0412\u0430\u043c \u0440\u0435\u0448\u0430\u0442\u044c, \u043a\u0430\u043a \u0438\u0445 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0443 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432\u044b\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <code>photos:archive<\/code>.<\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c. \u041a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0438\u0445 \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b. \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<ul>\n<li>\n<p><code>http_multipart_form_input_read<\/code>\u00a0&#8212; \u0447\u0438\u0442\u0430\u0435\u043c HTTP \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u0430\u043a\u00a0<code>multipart\/form-data<\/code><\/p>\n<\/li>\n<li>\n<p><code>http_octet_stream_input_read<\/code>\u00a0&#8212; \u0447\u0438\u0442\u0430\u0435\u043c HTTP \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u0430\u043a\u00a0<code>application\/octet-stream<\/code><\/p>\n<\/li>\n<li>\n<p><code>filesystem_input_read<\/code>\u00a0&#8212; \u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/p>\n<\/li>\n<li>\n<p><code>filesystem_input_write<\/code>\u00a0&#8212; \u043f\u0438\u0448\u0435\u043c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/p>\n<\/li>\n<li>\n<p><code>filesystem_input_remove<\/code>\u00a0&#8212; \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/p>\n<\/li>\n<li>\n<p><code>file_size_validate<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>file_type_validate<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c MIME-\u0442\u0438\u043f \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>file_time_validate<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>exiftool_metadata_cleanup<\/code>\u00a0&#8212; \u0447\u0438\u0441\u0442\u0438\u043c \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u0430 (\u043d\u0443\u0436\u0435\u043d exiftool)<\/p>\n<\/li>\n<li>\n<p><code>image_convert<\/code>\u00a0&#8212; \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 (\u043d\u0443\u0436\u0435\u043d libvips)<\/p>\n<\/li>\n<li>\n<p><code>s3_upload<\/code>\u00a0&#8212; \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0432 S3<\/p>\n<\/li>\n<li>\n<p><code>command_exec<\/code>\u00a0&#8212; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>\n<p><code>targetFiles<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c<\/p>\n<ul>\n<li>\n<p><code>without_errors<\/code> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) &#8212; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a (\u043e\u0448\u0438\u0431\u043e\u043a \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043b\u0438\u0431\u043e \u043b\u044e\u0431\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445)<\/p>\n<\/li>\n<li>\n<p><code>with_errors<\/code> &#8212; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438\u0448\u044c \u0444\u0430\u0439\u043b\u044b \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><code>all<\/code> &#8212; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>cleanupPolicy<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0435\u044e \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0447\u0438\u0449\u0430\u0442\u044c \u043c\u0443\u0441\u043e\u0440<\/p>\n<ul>\n<li>\n<p><code>keep_files<\/code> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) &#8212; \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/li>\n<li>\n<p><code>remove_files<\/code> &#8212; \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>maxPacketSize<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0437\u0430 \u0440\u0430\u0437<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430. \u0417\u0434\u0435\u0441\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>params<\/code>. \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/github.com\/capyfile\/capyfile\/blob\/master\/docs\/operations.md#available-operations\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 GitHub<\/a>. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code>value<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>env_var<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>secret<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u0435\u043a\u0440\u0435\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><code>file<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>http_get<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 HTTP GET \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>http_post<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437  HTTP POST \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>http_header<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 HTTP \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><code>etcd<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 etcd<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430.<\/p>\n<h2>\u0417\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430<\/h2>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430. \u041a\u0430\u043a \u0435\u0433\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c? \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u0440\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:\u00a0<\/p>\n<ol>\n<li>\n<p><code>capysvr<\/code> &#8212; HTTP \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<\/p>\n<\/li>\n<li>\n<p><code>capycmd<\/code> &#8212; \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>capyworker<\/code> &#8212; \u0432\u043e\u0440\u043a\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0418 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c.<\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 1: \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u043b\u043e\u0433\u0438<\/h2>\n<p>\u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0435\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0440\u043e\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432. \u0418 \u043b\u043e\u0433\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0440\u0448\u0435 \u043c\u0435\u0441\u044f\u0446\u0430, \u043d\u0443\u0436\u043d\u043e \u0441\u0436\u0430\u0442\u044c \u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 S3. <\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<pre><code class=\"yaml\">--- version: '1.2' name: logs processors:   - name: archive     operations:       - name: filesystem_input_read         cleanupPolicy: keep_files         params:           target:             sourceType: env_var             source: INPUT_READ_TARGET       - name: file_time_validate         params:           maxMtime:             sourceType: env_var             source: MAX_LOG_FILE_TIME_RFC3339       - name: command_exec         cleanupPolicy: remove_files         params:           commandName:             sourceType: value             source: gzip           commandArgs:             sourceType: value             source: [\"{{.AbsolutePath}}\"]           outputFileDestination:             sourceType: value             source: \"{{.AbsolutePath}}.gz\"       - name: command_exec         params:           commandName:             sourceType: value             source: aws           commandArgs:             sourceType: value             source: [               \"s3\",               \"cp\", \"{{.AbsolutePath}}\",               \"s3:\/\/MY_LOGS_BUCKET_HERE\/{{.Filename}}\",             ]       - name: filesystem_input_remove         params:           removeOriginalFile:             sourceType: value             source: false<\/code><\/pre>\n<p>\u0418 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0447\u0435\u0440\u0435\u0437 <code>capycmd<\/code>:<\/p>\n<pre><code class=\"bash\">INPUT_READ_TARGET=\/var\/logs\/rotated-logs\/* \\ MAX_LOG_FILE_TIME_RFC3339=$(date -d \"30 days ago\" -u +\"%Y-%m-%dT%H:%M:%SZ\") \\ capycmd -f logs.pipeline.yml -c logs:archive<\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>Running logs:archive service processor...  [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-12-23.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-12-28.log] file_time_validate FINISHED file mtime is too new [\/var\/logs\/rotated-logs\/access-2023-09-26.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] file_time_validate FINISHED file time is valid [\/var\/logs\/rotated-logs\/access-2023-09-28.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] file_time_validate FINISHED file time is valid [\/var\/logs\/rotated-logs\/access-2023-12-23.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-12-23.log] file_time_validate FINISHED file mtime is too new [\/var\/logs\/rotated-logs\/access-2023-09-26.log] command_exec STARTED command execution has started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] command_exec FINISHED command execution has finished [\/var\/logs\/rotated-logs\/access-2023-09-28.log] command_exec STARTED command execution has started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] command_exec FINISHED command execution has finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] command_exec SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-12-23.log] command_exec SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_write STARTED file write started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_write STARTED file write started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_write FINISHED file write finished [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_write FINISHED file write finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] filesystem_input_write SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-12-23.log] filesystem_input_write SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_remove STARTED file remove started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_remove FINISHED file remove finished [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_remove STARTED file remove started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_remove FINISHED file remove finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] filesystem_input_remove SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-12-23.log] filesystem_input_remove SKIPPED skipped due to \"without_errors\" target files policy ...<\/code><\/pre>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 2: \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b \u043f\u043e HTTP<\/h2>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d HTTP \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u043b\u0438\u0448\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 10\u041c\u0411, \u0438 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438\u0445 \u0432 S3 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.<\/p>\n<p>\u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<pre><code class=\"yaml\">version: '1.2' name: documents processors:   - name: upload     operations:       - name: http_multipart_form_input_read       - name: file_size_validate         params:           maxFileSize:             sourceType: value             source: 1048576       - name: file_type_validate         params:           allowedMimeTypes:             sourceType: value             source:               - application\/pdf               - application\/msword               - application\/vnd.openxmlformats-officedocument.wordprocessingml.document       - name: s3_upload         params:           accessKeyId:             sourceType: secret             source: aws_access_key_id           secretAccessKey:             sourceType: secret             source: aws_secret_access_key           endpoint:             sourceType: env_var             source: AWS_ENDPOINT           region:             sourceType: env_var             source: AWS_REGION           bucket:             sourceType: env_var             source: AWS_DOCUMENTS_BUCKET<\/code><\/pre>\n<p>\u0418 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e capysvr \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u0433\u043e \u0432 Docker:<\/p>\n<pre><code class=\"bash\">docker run \\     --name capyfile_server \\     --mount type=bind,source=.\/docs.pipeline.yml,target=\/etc\/capyfile\/docs.pipeline.yml \\     --env CAPYFILE_SERVICE_DEFINITION_FILE=\/etc\/capyfile\/docs.pipeline.yml \\     --env AWS_ENDPOINT=s3.amazonaws.com \\     --env AWS_REGION=us-west-1 \\     --env AWS_DOCUMENTS_BUCKET=my_documents_bucket \\     --secret aws_access_key_id \\     --secret aws_secret_access_key \\     -p 8024:80 \\     capyfile\/capysvr:latest<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043d\u0435\u043c\u0443 \u043f\u043e HTTP \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">curl \\     -F \"file1=@$HOME\/Documents\/document.pdf\" \\     -F \"file2=@$HOME\/Documents\/document.docx\" \\     -F \"file3=@$HOME\/Documents\/very-large-document.pdf\" \\     -F \"file4=@$HOME\/Documents\/program.run\" \\     http:\/\/localhost\/documents\/upload <\/code><\/pre>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043d\u0435\u0442 JSON \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430:<\/p>\n<pre><code class=\"json\">{   \"status\": \"PARTIAL\",   \"code\": \"PARTIAL\",   \"message\": \"successfully uploaded 2 of 4 files\",   \"files\": [     {       \"url\": \"https:\/\/my_documents_bucket.s3.us-west-1.amazonaws.com\/abcdKDNJW_DDWse.pdf\",       \"filename\": \"abcdKDNJW_DDWse.pdf\",       \"originalFilename\": \"document.pdf\",       \"mime\": \"application\/pdf\",       \"size\": 5892728,       \"status\": \"SUCCESS\",       \"code\": \"FILE_SUCCESSFULLY_UPLOADED\",       \"message\": \"file successfully uploaded\"     },     {       \"url\": \"https:\/\/my_documents_bucket.s3.us-west-1.amazonaws.com\/abcdKDNJW_DDWsd.docx\",       \"filename\": \"abcdKDNJW_DDWsd.docx\",       \"originalFilename\": \"document.docx\",       \"mime\": \"application\/vnd.openxmlformats-officedocument.wordprocessingml.document\",       \"size\": 3145728,       \"status\": \"SUCCESS\",       \"code\": \"FILE_SUCCESSFULLY_UPLOADED\",       \"message\": \"file successfully uploaded\"     }   ],   \"errors\": [     {       \"originalFilename\": \"very-large-document.pdf\",       \"status\": \"ERROR\",       \"code\": \"FILE_IS_TOO_BIG\",       \"message\": \"file size can not be greater than 10 MB\"     },     {       \"originalFilename\": \"program.run\",       \"status\": \"ERROR\",       \"code\": \"FILE_MIME_TYPE_IS_NOT_ALLOWED\",       \"message\": \"file MIME type \\\"application\/x-makeself\\\" is not allowed\"     }   ],   \"meta\": {     \"totalUploads\": 4,     \"successfulUploads\": 2,     \"failedUploads\": 2   } }<\/code><\/pre>\n<h2>\u0412 \u043a\u043e\u043d\u0446\u0435<\/h2>\n<p>\u041d\u0443 \u0432 \u043e\u0431\u0449\u0435\u043c \u0442\u0430\u043a\u043e\u0435 \u044f \u043f\u0438\u0448\u0443 \u043f\u043e \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u043c. \u0420\u043e\u0431\u043e\u0442\u044b \u0442\u0430\u043c \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e, \u043d\u043e \u0443\u0436\u0435 \u0447\u0442\u043e-\u0442\u043e \u0432\u044b\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0435\u043c\u0443 \u044f \u0434\u0430\u0436\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0434. \u041a\u043e\u043c\u0443 \u0438\u0434\u0435\u044f \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c, \u0437\u0430\u0433\u043b\u044f\u043d\u0438\u0442\u0435 \u0432 <a href=\"https:\/\/github.com\/capyfile\/capyfile\" rel=\"noopener noreferrer nofollow\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/784550\/\"> https:\/\/habr.com\/ru\/articles\/784550\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0423 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0448 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430 \u0441\u044b\u0440\u043e\u0432\u0430\u0442\u043e\u0435, \u043d\u043e \u0443\u0436\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0442\u043e\u0447\u043d\u044e, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u044f \u0433\u043e\u0432\u043e\u0440\u044e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u043e\u0432, \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0438 \u0442\u0438\u043f, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 S3. \u0422\u0443\u0434\u0430 \u0436\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438, \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0438\u0448\u0443\u0442 \u0441\u043a\u0440\u0438\u043f\u0442\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043f\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442 \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0444\u0430\u0439\u043b\u043e\u0432.<\/p>\n<p>\u0422\u043e, \u043e \u0447\u0435\u043c \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f Capyfile. \u042f \u0431\u044b \u043d\u0430\u0437\u0432\u0430\u043b \u044d\u0442\u043e \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0441\u0432\u043e\u0438 \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0435 \u043d\u0443\u0436\u0434\u044b. \u041a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/capyfile\/capyfile\" rel=\"noopener noreferrer nofollow\">GitHub<\/a>. \u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0441\u0435 \u043d\u0430 Go. \u0418 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c, \u043d\u0443\u0436\u043d\u044b \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0435 \u0432\u0435\u0449\u0438:<\/p>\n<ol>\n<li>\n<p>\u00a0\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0438\u0439 \u0447\u0442\u043e \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u043d\u043d\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438.<\/p>\n<h2>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430<\/h2>\n<p>\u041a\u0430\u043a \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u043d\u0435\u0435, \u043f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u044d\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u044b \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a \u043d\u0438\u043c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442. \u0410 \u0432 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u0432\u0443\u0445 \u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432 &#8212; YAML \u0438 JSON.<\/p>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a.<\/p>\n<pre><code class=\"yaml\">--- version: '1.2' name: photos processors:   - name: archive     operations:       # read the files from the directory       - name: filesystem_input_read         params:           target:             sourceType: value             source: \"\/home\/user\/Photos\/*\"       # check the file type       - name: file_type_validate         params:           allowedMimeTypes:             sourceType: value             source:               - image\/jpeg               - image\/x-canon-cr2               - image\/heic               - image\/heif       # if the file type is right, upload the file to S3       - name: s3_upload         targetFiles: without_errors         params:           accessKeyId:             sourceType: env_var             source: AWS_ACCESS_KEY_ID           secretAccessKey:             sourceType: env_var             source: AWS_SECRET_ACCESS_KEY           endpoint:             sourceType: value             source: \"s3.amazonaws.com\"           region:             sourceType: value             source: \"us-east-1\"           bucket:             sourceType: env_var             source: AWS_PHOTOS_BUCKET       # if the file type is right, and it is successfully uploaded to S3,       # remove the file from the filesystem       - name: filesystem_input_remove         targetFiles: without_errors<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u044b \u0442\u0440\u0438 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438. \u0421\u0430\u043c\u0430\u044f \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u2013 \u044d\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441. \u0417\u0430\u0442\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b, \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0438\u043c\u0435\u0435\u0442 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0434\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043a \u043d\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f. \u041e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0438\u043c\u0435\u043d\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u0438 \u0438\u043c\u0435\u043d\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c (\u0434\u0432\u043e\u0435\u0442\u043e\u0447\u0438\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0438 \u0441\u043b\u044d\u0448 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430). \u0412\u0430\u043c \u0440\u0435\u0448\u0430\u0442\u044c, \u043a\u0430\u043a \u0438\u0445 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0443 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432\u044b\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <code>photos:archive<\/code>.<\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c. \u041a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0438\u0445 \u0432 \u043b\u044e\u0431\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b. \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<ul>\n<li>\n<p><code>http_multipart_form_input_read<\/code>\u00a0&#8212; \u0447\u0438\u0442\u0430\u0435\u043c HTTP \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u0430\u043a\u00a0<code>multipart\/form-data<\/code><\/p>\n<\/li>\n<li>\n<p><code>http_octet_stream_input_read<\/code>\u00a0&#8212; \u0447\u0438\u0442\u0430\u0435\u043c HTTP \u0437\u0430\u043f\u0440\u043e\u0441 \u043a\u0430\u043a\u00a0<code>application\/octet-stream<\/code><\/p>\n<\/li>\n<li>\n<p><code>filesystem_input_read<\/code>\u00a0&#8212; \u0447\u0438\u0442\u0430\u0435\u043c \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/p>\n<\/li>\n<li>\n<p><code>filesystem_input_write<\/code>\u00a0&#8212; \u043f\u0438\u0448\u0435\u043c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/p>\n<\/li>\n<li>\n<p><code>filesystem_input_remove<\/code>\u00a0&#8212; \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/p>\n<\/li>\n<li>\n<p><code>file_size_validate<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>file_type_validate<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c MIME-\u0442\u0438\u043f \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>file_time_validate<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043a\u0438 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>exiftool_metadata_cleanup<\/code>\u00a0&#8212; \u0447\u0438\u0441\u0442\u0438\u043c \u043c\u0435\u0442\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u0430 (\u043d\u0443\u0436\u0435\u043d exiftool)<\/p>\n<\/li>\n<li>\n<p><code>image_convert<\/code>\u00a0&#8212; \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 (\u043d\u0443\u0436\u0435\u043d libvips)<\/p>\n<\/li>\n<li>\n<p><code>s3_upload<\/code>\u00a0&#8212; \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0432 S3<\/p>\n<\/li>\n<li>\n<p><code>command_exec<\/code>\u00a0&#8212; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li>\n<p><code>targetFiles<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c<\/p>\n<ul>\n<li>\n<p><code>without_errors<\/code> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) &#8212; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u044b \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a (\u043e\u0448\u0438\u0431\u043e\u043a \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043b\u0438\u0431\u043e \u043b\u044e\u0431\u044b\u0445 \u0434\u0440\u0443\u0433\u0438\u0445)<\/p>\n<\/li>\n<li>\n<p><code>with_errors<\/code> &#8212; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438\u0448\u044c \u0444\u0430\u0439\u043b\u044b \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><code>all<\/code> &#8212; \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>cleanupPolicy<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0435\u044e \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u0447\u0438\u0449\u0430\u0442\u044c \u043c\u0443\u0441\u043e\u0440<\/p>\n<ul>\n<li>\n<p><code>keep_files<\/code> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) &#8212; \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/li>\n<li>\n<p><code>remove_files<\/code> &#8212; \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0444\u0430\u0439\u043b\u044b<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><code>maxPacketSize<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0437\u0430 \u0440\u0430\u0437<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430. \u0417\u0434\u0435\u0441\u044c \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0432\u043e\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>params<\/code>. \u0421\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 <a href=\"https:\/\/github.com\/capyfile\/capyfile\/blob\/master\/docs\/operations.md#available-operations\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 GitHub<\/a>. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><code>value<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>env_var<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p><code>secret<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0441\u0435\u043a\u0440\u0435\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><code>file<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p><code>http_get<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 HTTP GET \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>http_post<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437  HTTP POST \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>http_header<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 HTTP \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/p>\n<\/li>\n<li>\n<p><code>etcd<\/code>\u00a0&#8212; \u0431\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 etcd<\/p>\n<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430.<\/p>\n<h2>\u0417\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430<\/h2>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u043c\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430. \u041a\u0430\u043a \u0435\u0433\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c? \u0412 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u0440\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430:\u00a0<\/p>\n<ol>\n<li>\n<p><code>capysvr<\/code> &#8212; HTTP \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441<\/p>\n<\/li>\n<li>\n<p><code>capycmd<\/code> &#8212; \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>capyworker<\/code> &#8212; \u0432\u043e\u0440\u043a\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0438\u0439 \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c\u044e<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u0430\u043a \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0418 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a \u043a\u043e\u043d\u0432\u0435\u0439\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c.<\/p>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 1: \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u043b\u043e\u0433\u0438<\/h2>\n<p>\u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0435\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0440\u043e\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432. \u0418 \u043b\u043e\u0433\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0440\u0448\u0435 \u043c\u0435\u0441\u044f\u0446\u0430, \u043d\u0443\u0436\u043d\u043e \u0441\u0436\u0430\u0442\u044c \u0438 \u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 S3. <\/p>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<pre><code class=\"yaml\">--- version: '1.2' name: logs processors:   - name: archive     operations:       - name: filesystem_input_read         cleanupPolicy: keep_files         params:           target:             sourceType: env_var             source: INPUT_READ_TARGET       - name: file_time_validate         params:           maxMtime:             sourceType: env_var             source: MAX_LOG_FILE_TIME_RFC3339       - name: command_exec         cleanupPolicy: remove_files         params:           commandName:             sourceType: value             source: gzip           commandArgs:             sourceType: value             source: [\"{{.AbsolutePath}}\"]           outputFileDestination:             sourceType: value             source: \"{{.AbsolutePath}}.gz\"       - name: command_exec         params:           commandName:             sourceType: value             source: aws           commandArgs:             sourceType: value             source: [               \"s3\",               \"cp\", \"{{.AbsolutePath}}\",               \"s3:\/\/MY_LOGS_BUCKET_HERE\/{{.Filename}}\",             ]       - name: filesystem_input_remove         params:           removeOriginalFile:             sourceType: value             source: false<\/code><\/pre>\n<p>\u0418 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0447\u0435\u0440\u0435\u0437 <code>capycmd<\/code>:<\/p>\n<pre><code class=\"bash\">INPUT_READ_TARGET=\/var\/logs\/rotated-logs\/* \\ MAX_LOG_FILE_TIME_RFC3339=$(date -d \"30 days ago\" -u +\"%Y-%m-%dT%H:%M:%SZ\") \\ capycmd -f logs.pipeline.yml -c logs:archive<\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code>Running logs:archive service processor...  [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-12-23.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] filesystem_input_read FINISHED file read finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-12-28.log] file_time_validate FINISHED file mtime is too new [\/var\/logs\/rotated-logs\/access-2023-09-26.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] file_time_validate FINISHED file time is valid [\/var\/logs\/rotated-logs\/access-2023-09-28.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] file_time_validate FINISHED file time is valid [\/var\/logs\/rotated-logs\/access-2023-12-23.log] file_time_validate STARTED file time validation started [\/var\/logs\/rotated-logs\/access-2023-12-23.log] file_time_validate FINISHED file mtime is too new [\/var\/logs\/rotated-logs\/access-2023-09-26.log] command_exec STARTED command execution has started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] command_exec FINISHED command execution has finished [\/var\/logs\/rotated-logs\/access-2023-09-28.log] command_exec STARTED command execution has started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] command_exec FINISHED command execution has finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] command_exec SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-12-23.log] command_exec SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_write STARTED file write started [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_write STARTED file write started [\/var\/logs\/rotated-logs\/access-2023-09-26.log] filesystem_input_write FINISHED file write finished [\/var\/logs\/rotated-logs\/access-2023-09-28.log] filesystem_input_write FINISHED file write finished [\/var\/logs\/rotated-logs\/access-2023-12-28.log] filesystem_input_write SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-12-23.log] filesystem_input_write SKIPPED skipped due to \"without_errors\" target files policy [\/var\/logs\/rotated-logs\/access-2023-09-28.log]<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-364551","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/364551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=364551"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/364551\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}