OSiUX · @osiux
104 followers · 89 posts · Server rebel.ar
Scott Leggett :fedi: :golang: · @smlx
29 followers · 248 posts · Server fosstodon.org

@hal_pomeranz this one compares the directories pairwise and considers files to be "the same" if the size and checksum match

dirs=(*)
for ((i=0; i < ${[@]}; i++)); do
for ((j=i+1; j < ${[@]}; j++)); do
echo ${dirs[i]} - ${dirs[j]}; rsync -vvrcn ./${dirs[i]}/ ./${dirs[j]}/ | grep uptodate
done
done

#dirs

Last updated 2 years ago

OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social
OSTechNix · @ostechnix
520 followers · 1486 posts · Server floss.social