Created
January 24, 2024 16:22
-
-
Save gaborbata/218824c6d3f6a8514f3d82447916f934 to your computer and use it in GitHub Desktop.
Sync volumes on NAS
This file contains 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/sh | |
DIRS="${SYNC_DIRS:-Addons Documents}" | |
for dir in $DIRS | |
do | |
echo "*** synchronize $dir..." | |
rsync -a --delete --update --progress /shares/vol1/$dir/ /shares/vol2/$dir/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment