A 4.2 magnitude earthquake shook Canterbury overnight.

The tremor struck at 1.03am and was centred 20km north-west of Akaroa at a depth of 9km.

It was felt on the Banks Peninsula and in Christchurch.

- NZPA