From 3246ad6f501251c34fd4bfdb46001e460cd6536d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 3 Jan 2025 17:44:21 -0300 Subject: Fix: hydractl: sync-media: run git gc and git prune on git-annex repositories --- share/hydractl/sync-media | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share') diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 17ee219..0976c68 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -248,6 +248,8 @@ for folder in $REPOSITORIES; do # Repository maintenance sync_media_fsck sync_media_dropunused + git prune + git gc ) fi @@ -315,6 +317,8 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then sync_media_getall $VOLUME/$MEDIA/$folder sync_media_fsck sync_media_dropunused + git gc + git prune #git annex drop --auto --numcopies=2 ) elif [ -d "$CACHE/$folder" ] && [ ! -d "$CACHE/$folder/.git" ]; then -- cgit v1.2.3