X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=dupltool;h=b7fb409573f0968a5658f9a13b8b9f56108a9482;hb=HEAD;hp=eda2dd854f37981f2071da997eee09de564c7355;hpb=67b913b71ed2b9349dff4ceaa2c201f7f87ff0e2;p=rrq%2Fbuckap.git diff --git a/dupltool b/dupltool index eda2dd8..b7fb409 100755 --- a/dupltool +++ b/dupltool @@ -51,7 +51,7 @@ SFTP="sftp://$SFTP" # openssh-client=1:8.4p1-5+deb11u1 FILES=( $(remote_from_to_month_prefix) ) if [ -n "$FILES" ] ; then - THATMONTH="${FILES[0]:6:6}" # to-month of newest + THATMONTH="${FILES[0]:0:6}" # to-month of newest if [ "$THISMONTH" != "$THATMONTH" ] ; then echo "** New monthly snapshot; stashing daily into .$THATMONTH" >&2 { # Generate command stream for sftp