Export crontab to a file

How can I export the contents of the crontab to a file?

I need it because I'm switching usernames and do not want to lose the data in the crontab.


Create the backup (export):

crontab -l > /some/shared/location/crontab.bak

Import it from the new user:

crontab /some/shared/location/crontab.bak