Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How can I backup a cron job? i dont want to create a cron job to backup something... i want to backup the cron job itself, just the settings to have crontab execute that job.
Thank you.

You can copy the file that contains your cron jobs to a backup location easily enough. The files that contain your cron jobs are located at /var/spool/cron/$USER (e.g.: If I have a user account 'joe' on my system, joe's cron job file would be /var/spool/cron/joe).
/var/spool/cron is accessible only by the root user. In KDE, open a terminal window, su to root, start the file manager (konqueror -profile filemanagement), navigate to /var/spool/cron and copy the file to the backup location of your choice.
You can also switch to a console screen, log in as root, and copy it:
cp /var/spool/cron/joe /home/joe/joe
Or you can use the Midnight Commander (mc).
If you are smart enough to do regular backups, you can include /var/spool/cron in your system wide incremental back up routine.HTH,
Ernie Registered Linux User 247790
ICQ 41060744

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |