Skip to content

Instantly share code, notes, and snippets.

@gaborbata
Created January 24, 2024 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaborbata/218824c6d3f6a8514f3d82447916f934 to your computer and use it in GitHub Desktop.
Save gaborbata/218824c6d3f6a8514f3d82447916f934 to your computer and use it in GitHub Desktop.
Sync volumes on NAS
#!/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