A preliminary 2.9 magnitude earthquake struck near Pacifica on Saturday, according to the United States Geological Survey.