diff --git a/zzz_evobackup b/zzz_evobackup index 999bc80..a06aaca 100755 --- a/zzz_evobackup +++ b/zzz_evobackup @@ -80,7 +80,8 @@ pick_server() { salt=$(hostname | cksum | cut -d' ' -f1) # Pick an integer between 0 and the length of the SERVERS list # It changes each day - item=$(( ($(date +%d) + salt + increment) % list_length )) + today=10#$(date +%d) + item=$(( ($today + salt + increment) % list_length )) # cut starts counting fields at 1, not 0. field=$(( item + 1 ))