You can do the alphabetic comparison if your filenames are in the big-medium-small order: "%Y-%m-%d"
GNU date has even a shortcut for it: date "+%F"
You create backup directories in /home/alamakota/
but you delete old ones in /home/elicki/ ??
Perhaps you can use an array:
Code:
Akatalog=(
"/home/a/"
"/home/b/"
"/home/c/"
# "/home/d/"
"/home/e/"
"/home/f/"
"/home/g/"
"/home/h/"
)
...
cp -r "${Akatalog[@]}" "$backup_dir"/