in Software by (12.3k points)
0 like 0 dislike
Me need export crontab tasks to a file. How I can export contents of crontab to a dump file? I need it because I'm switching usernames and do not want to lose the data in the crontab.

1 Answer

0 like 0 dislike
by (12.3k points)

Create crontab backup file (export cron tasks):

crontab -l > /some/crontab.bak

Import it from new user:

crontab /some/crontab.bak

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.