Modification arbo des musiques

This commit is contained in:
Damien Broqua 2022-06-25 19:37:17 +02:00
parent 6122d8d576
commit 0e6ca439d1
2 changed files with 3 additions and 6 deletions

View file

@ -5,7 +5,7 @@ if [ "$#" -ne 2 ]; then
exit 1 exit 1
fi fi
cd ~/Vinyles cd ~/Music/Vinyles
mkdir -p "Raw/${1}" mkdir -p "Raw/${1}"
mkdir -p "Flac/${1}" mkdir -p "Flac/${1}"

View file

@ -3,8 +3,5 @@
echo "# Correction des permissions" echo "# Correction des permissions"
find ~/Music -type f \( -iname \*.flac -o -iname \*.mp3 \) -perm 600 -print -exec chmod go+r {} \; find ~/Music -type f \( -iname \*.flac -o -iname \*.mp3 \) -perm 600 -print -exec chmod go+r {} \;
echo "# Copie des CDs" echo "# Copie des CDs, LPs et EPs"
rsync -avz --delete ~/Music dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/medias/ rsync -avz --delete ~/Music/ dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/Musiques
echo "# Copie des vinyles"
rsync -avz --delete ~/Vinyles dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/medias/