create shared file
use perror
use snprintf to setup backup paths