daily backup
replace stringstream with char array