Archive object to file