I am trying to create a backup of all the configuration of a server. This
server is having a number of scheduled jobs. The idea of the backup is to
get the server up as soon as possible. So I want to have the crontab also as
a backed up so that the reconfiguration of the server, in case of a
disaster, faster and accurate.

I am really sorry for asking the silly question. The crontab -l thing should
have come to my mind. I was trying to dig up the physical file from the hard
disk too hard. :-)

With regards,

----- Original Message -----
From: "Rohan Romanus Almeida" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 3:11 PM
Subject: Re: [LIH]backup of crontab


>
> "Goutam Baul" <[EMAIL PROTECTED]> thus wrote:
> > How I can have a backup of the crontab file ?
>
> Per user cron entries are stored in the
> directory "/var/spool/cron".
>
> Although as Sridhar suggested, "crontab -l > yourfile",
> is your best bet to save the current cron entries
> of the user you execute the above command as.
>
> If you have root permissions, then you can
> always peek into "/var/spool/cron" and obtain the
> cron entries of all the users.
>
> For regular backup, you can create
> a simple script which reads the cron entries
> of all users and saves it somewhere convenient.
>
> And then put that script in the crontab of root. :-)
>
> Although, why you need to backup cron entries,
> I just can't understand.
>
> --
> arc_of_descent
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> linux-india-help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/linux-india-help
>
>




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to