Browse Source

save-to-eye: fix location name

master
Ivan Kozik 3 weeks ago
parent
commit
e56f4b5ae0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      save-to-eye

+ 1
- 1
save-to-eye View File

@@ -66,7 +66,7 @@ while read i; do
# all of the files in the ceph directory.
(
ionice -c 3 nice es x get -s -- "$i" && \
curl --fail-with-body -u "ya: ." -X POST -d "{\"file_id\": $file_id, \"location\": \"deleteme\", \"pathname\": \"$eye_path\"}" https://ya.borg.xyz/cgi-bin/new-namedfiles && \
curl --fail-with-body -u "ya: ." -X POST -d "{\"file_id\": $file_id, \"location\": \"the-eye\", \"pathname\": \"$eye_path\"}" https://ya.borg.xyz/cgi-bin/new-namedfiles && \
curl -X POST -d "{\"the_eye_any_bytes_saved\": $size, \"the_eye_video_bytes_saved\": $the_eye_video_bytes_saved, \"the_eye_any_files_saved\": 1, \"the_eye_video_files_saved\": $the_eye_video_files_saved}" "http://eye.borg.xyz:31416/metrics" && \
mkdir -p -- "$complete_eye_dir" && \
mv -- "$i" "$complete_eye_dir"/ || true


Loading…
Cancel
Save