added bash functions
dawn of the backup script
RC1 version with backup working