home/bin/syncMusic.sh
2023-02-13 11:50:59 +01:00

9 lines
301 B
Bash
Executable file

#! /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, LPs et EPs"
rsync -avz --delete ~/Music/ dmc-12:/srv/dev-disk-by-uuid-52e1df75-7a38-4ba4-a590-2f1075e84ff3/Musiques
mpc rescan