C
C
Crash2018-08-15 13:13:45
Backup
Crash, 2018-08-15 13:13:45

How to back up a cron file?

Everyone who has had at least a little experience with the console must have come across one interesting problem:
Editing the schedule:
crontab -e
Reset the schedule:
crontab -r
As you can guess from the location of the E and R keys, they are next to each other, and completely resetting the schedule instead of editing it by mistake is not no work at all.
Thus, it is highly desirable to back up the cron schedule file. How to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-08-15
@saboteur_kiev

You can just create a folder
and add the command to cron:
Do not forget to clean once a year or two, although not necessary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question