second commit

This commit is contained in:
pvincent
2024-02-22 09:56:25 +04:00
parent 35cb36cab6
commit 248193a773
21 changed files with 1865 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
SOURCE=$(realpath "$1")
DEST=$(realpath "$2")
[ ! -d "$SOURCE" ] && echo "SOURCE FOLDER <$SOURCE> not reachable!" && exit 1
[ ! -d "$DEST" ] && echo "DESTINATION FOLDER missing!" && exit 2
[ "$SOURCE" == "$DEST" ] && echo "SOURCE and DESTINATION overriden!" && exit 3
rsync -a --no-inc-recursive --info=progress2 --remove-source-files "$SOURCE" "$DEST" && find "$SOURCE" -type d -empty -delete