[CentOS] backing up pending at commands

Sun Mar 2 18:36:18 UTC 2014
Frank Cox <theatre at melvilletheatre.com>

On Sat, 1 Mar 2014 18:47:03 -0600
Frank Cox wrote:

> I can easily get a copy of my pending cron jobs so I can keep a backup.
> "crontab -l > mycron.txt" is part of my backup script, and that does the job
> nicely.
> 
> Is there a way that I can get a copy of pending at jobs for this purpose? 

This output is a bit long-winded, but it should do for my purposes.  Maybe I'll pretty it up a bit more sometime:

#!/bin/bash
atq
for each in $(atq | cut -f 1); do echo "JOB $each"; at -c $each; done


-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com