Re: [CentOS] saving at jobs

2014-09-18 Thread m . roth
Frank Cox wrote: > On Thu, 18 Sep 2014 18:44:05 +0200 > Mogens Kjaer wrote: > >> On 09/18/2014 06:35 PM, Frank Cox wrote: >> > Is there any way to do the same thing with at jobs? >> >> Can't you just back up /var/spool/at ? > > I don't know. Can I do that? > > I can't back it up as a user since th

Re: [CentOS] saving at jobs

2014-09-18 Thread Frank Cox
On Thu, 18 Sep 2014 18:44:05 +0200 Mogens Kjaer wrote: > On 09/18/2014 06:35 PM, Frank Cox wrote: > > Is there any way to do the same thing with at jobs? > > Can't you just back up /var/spool/at ? I don't know. Can I do that? I can't back it up as a user since that directory is accessible only

Re: [CentOS] saving at jobs

2014-09-18 Thread Mogens Kjaer
On 09/18/2014 06:35 PM, Frank Cox wrote: Is there any way to do the same thing with at jobs? Can't you just back up /var/spool/at ? Mogens -- Mogens Kjaer, m...@lemo.dk http://www.lemo.dk ___ CentOS mailing list CentOS@centos.org http://lists.cento

[CentOS] saving at jobs

2014-09-18 Thread Frank Cox
I can easily save cron jobs in a file by doing this: crontab -l > file.txt And I can restore it with crontab file.txt Is there any way to do the same thing with at jobs? The closest thing that I've managed to find is this: #!/bin/bash atq for each in $(atq | cut -f 1); do echo "JOB $each"; at