Script directory for a PowerShell profile. https://blog.lksz.me/keeping-track-of-everything/#-mypsscriptroot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
269 B

  1. #setopt dotglob
  2. $szSrc="'$($args -join "','")'"
  3. $szSrcCount=$(Invoke-ExpressionEx -sudo "& find $szSrc -type f | wc -l )
  4. Invoke-ExpressionEx -sudo "& rsync --archive --acls --xattrs --human-readable -v $szSrc /szmedia/media/ | pv -lepts $szSrcCount"
  5. #unsetopt dotglob