-
-
Save pedrohills/789628cd9d07098de4f1b00515af2bb1 to your computer and use it in GitHub Desktop.
Rsync incremental + beep when finished
This file contains hidden or 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
#!/bin/bash | |
for mount_point in $(find /media/samir/ -mindepth 1 -type d); do | |
if ! mountpoint -q ${mount_point}/; then | |
continue | |
fi | |
echo ":: ${mount_point}" | |
rsync --archive --verbose --human-readable --progress \ | |
--delete --delete-excluded --exclude="*Thumbs.db" \ | |
"/home/samir/Downloads/Fortaleza2040/" "$mount_point" & | |
done | |
wait # Expects all jobs finished second plan. | |
( speaker-test -t sine -f 1000 )& pid=$! ; sleep 0.1s ; kill -9 $pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment