If comparing only two years, open Reports, Analytical Reports and run an Comparative Report
If comparing more than two years:
1. Create a constituent export file
2. Export Summary Information, Gifts. Total Amount and select the first date range.
3. Repeat step 2 one time for each year changing the date range each time.