Backup and restore crontabs

Here’s a thing I came up with: you’re administering a Linux system with 100 users circa and you’re moving to a new server, you can save crontabs per user with this: mkdir crontabz && cd crontabz; for user in `cat /etc/cron.allow`; do crontab -l -u $user > cron_$user; done you will end up with a list of files cron_xxx, each one has the users’ cron. Hopefully your cron version will use the /etc/cron. [Read More]