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
194 B

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