瀏覽代碼

Add note

master
Ivan Kozik 1 月之前
父節點
當前提交
5406e19a0f
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      sftp-into-eye

+ 2
- 0
sftp-into-eye 查看文件

@@ -42,6 +42,8 @@ while read i; do
# If already in namedfiles i.e. the-eye, skip # If already in namedfiles i.e. the-eye, skip
es x info -- "$i" | rg -q -F '"type": "namedfiles"' && continue || true es x info -- "$i" | rg -q -F '"type": "namedfiles"' && continue || true


# This is mostly a demo which adds it to ceph over SFTP with `rclone`;
# ideally we instead have the `es x get -s -- "$i"` step putting it directly into ceph.
( (
es x get -s -- "$i" && \ es x get -s -- "$i" && \
rclone --metadata --inplace --size-only --progress copyto "$i" "$RCLONE_DEST:$eye_path" && \ rclone --metadata --inplace --size-only --progress copyto "$i" "$RCLONE_DEST:$eye_path" && \


Loading…
取消
儲存