Converting my work-related backup scripts, written in BASH, to Ruby language.