Compare commits

...

2 commits

Author SHA1 Message Date
6122d8d576 Ajout d'un script de création d'arborescence pour les LP 2022-06-03 05:35:29 +02:00
4304f30d2a Ajout de messages 2022-06-03 05:32:27 +02:00
2 changed files with 19 additions and 0 deletions

16
bin/createLP.sh Executable file
View file

@ -0,0 +1,16 @@
#! /bin/bash
if [ "$#" -ne 2 ]; then
echo Usage: createLp.sh \"artist/album\" https://cover
exit 1
fi
cd ~/Vinyles
mkdir -p "Raw/${1}"
mkdir -p "Flac/${1}"
wget ${2} -O /tmp/cover.jpg
cp /tmp/cover.jpg "Raw/${1}"
cp /tmp/cover.jpg "Flac/${1}"

View file

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