added targetdirs to backups
added sendmail function, commented out