Created
October 20, 2020 13:52
-
-
Save miquelbrazil/05e558a8501051fefb6dbe2b3b7185b2 to your computer and use it in GitHub Desktop.
CLI snippet for batch transferring ProDocs to DigitalOcean Spaces using rClone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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