how to save crontab code example
Example 1: crontab edit
crontab -e # open user crontab in edit mode
i # for insert. Make your changes
:wq! # quit and save
crontab -l # open user crontab in read mode
Example 2: export crontab
# Create the backup (export):
crontab -l > /some/shared/location/crontab.bak
# Import it from the new user:
crontab /some/shared/location/crontab.bak