A workaround with --dry-run and checking DeltaEntries line:
CHANGES=`duplicity ---dry-run [...] | grep DeltaEntries | sed "s/DeltaEntries //"` if [ "$CHANGES" == "0" ]; then echo "No changes detected, skipping" else duplicity --progress [...] fi
A workaround with --dry-run and checking DeltaEntries line:
CHANGES=`duplicity ---dry-run [...] | grep DeltaEntries | sed "s/DeltaEntries //"`
if [ "$CHANGES" == "0" ]; then
echo "No changes detected, skipping"
else
duplicity --progress [...]
fi