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.

5 lines
175 B

  1. #!/bin/bash
  2. [ ! -d "$1" ] && echo "SOURCE FOLDER $1 not reachable!" && exit -1
  3. rsync -a --info=progress2 --remove-source-files "$1" "$2" && find "$1" -type d -empty -delete