#!/bin/bash

last_day=32
dirs=`ls /mnt/qpix/NEW_PIX/OLD_PIX_DATA`
echo $dirs
for item in $dirs; do
    counter=1
    while [ $counter -lt $last_day ]; do
        rsync -avh --delete-during /mnt/qpix/NEW_PIX/empty_folder/ /mnt/qpix/NEW_PIX/OLD_PIX_DATA/$item/2025/08/$counter/
        echo "$item $counter"
        ((counter++))
    done
done