The acceleration of galactic cosmic rays