Skip to content

Instantly share code, notes, and snippets.

@miquelbrazil
Created October 20, 2020 13:52
Show Gist options
  • Save miquelbrazil/05e558a8501051fefb6dbe2b3b7185b2 to your computer and use it in GitHub Desktop.
Save miquelbrazil/05e558a8501051fefb6dbe2b3b7185b2 to your computer and use it in GitHub Desktop.
CLI snippet for batch transferring ProDocs to DigitalOcean Spaces using rClone
ls ~/Downloads/clv_jobs | head -10000 $1 | while read x; do find "$HOME/Downloads/clv_jobs/$x" -type f -execdir echo "$x/{}" \; ; done | rclone move --files-from - ~/Downloads/clv_jobs/ clv-prodocs:clv.prodocs/job --delete-empty-src-dirs -vP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment