aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-04-08 16:02:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-04-08 16:02:12 -0300
commitbf63896f46d700874fbc775e342cdda6eb337046 (patch)
tree6b19995583a3f9003536db86de087ce971fea18d
parent8e531b59f9285104b29147136d388b70d657a64f (diff)
downloadhydra-bf63896f46d700874fbc775e342cdda6eb337046.tar.gz
hydra-bf63896f46d700874fbc775e342cdda6eb337046.tar.bz2
Fix: sync-media: git-annex: disable automatic syncing of content
-rwxr-xr-xshare/hydractl/sync-media15
1 files changed, 11 insertions, 4 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index 88c8901..742123e 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -219,9 +219,12 @@ for folder in $REPOSITORIES; do
# Ensure the repository is identified
sync_media_identity
+ # Disable automatic syncing of content
+ git config annex.synccontent false
+
# Sync before changing anything, to make sure the history does not have
# conflicts with other remotes
- git annex sync
+ git annex sync --no-content
# Fix any playlist permissions
sync_media_playlist_perms
@@ -233,7 +236,7 @@ for folder in $REPOSITORIES; do
sync_media_add
# Sync everything again
- git annex sync
+ git annex sync --no-content
# Get all that needs to be got
sync_media_getall $CACHE/$folder
@@ -299,7 +302,11 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then
sync_media_ensure_remote $HOST $CACHE/$folder
sync_media_identity
sync_media_add
- git annex sync
+
+ # Disable automatic syncing of content
+ git config annex.synccontent false
+
+ git annex sync --no-content
sync_media_get $VOLUME/$MEDIA/$folder
sync_media_getall $VOLUME/$MEDIA/$folder
sync_media_fsck
@@ -388,7 +395,7 @@ elif [ ! -z "$REMOTE" ] && [ "$REMOTE" != "local" ]; then
(
cd $CACHE/$folder
git annex copy . --to $REMOTE
- git annex sync
+ git annex sync --no-content
)
else
echo "Syncing $CACHE/$folder with ssh://$REMOTE.$DOMAIN/$CACHE/$folder..."