]>
Git — Sourcephile - julm/camera.git/blob - push.sh
3 # $ ./push.sh julm/2023
8 IFS
=/ read -r user year x month x
<<<"$dir"
10 test "${year:+set}" || exec "$0" "$user"/*/
11 rsync
-ai --no-inc-recursive --info=progress2
--inplace --partial \
14 --exclude "*.vp9.webm" \
17 --delete --delete-after --delete-excluded \
18 "$user"/"$year"/fav
/${month:+"$month"/} \
19 mermet.wg
:/var
/lib
/nginx
/autogeree.net
/"$user"/perso
/camera
/"$year"/${month:+"$month"/}
20 if test "$(date +%Y)" == "$year"; then
21 ssh mermet.wg
ln -sf "$(date +%m)" /var
/lib
/nginx
/autogeree.net
/"$user"/perso
/camera
/"$year"/latest