I did a stupid thing and deleted my cron.daily files. Does anybody know
where they come from so I can recreate them?
Thanks,
--
Knute Johnson
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 09:34 PM
Alan Pope
Help I deleted my cron.daily files
On 4 July 2011 22:12, Knute Johnson <ubuntu@knutejohnson.com> wrote:
> I did a stupid thing and deleted my cron.daily files. *Does anybody know
> where they come from so I can recreate them?
>
Not from one package unfortunately.
e.g /etc/cron.daily/dpkg comes from the dpkg package and
/etc/cron.daily/mlocate comes from the mlocate package.
My natty desktop install has these, fwiw:-
alan@wopr:/etc/cron.daily$ ls
0anacron aptitude google-chrome man-db passwd
apport bsdmainutils google-talkplugin mdadm popularity-contest
apt dpkg logrotate mlocate standard
Cheers,
Al.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 09:44 PM
David Fletcher
Help I deleted my cron.daily files
On Mon, 2011-07-04 at 14:12 -0700, Knute Johnson wrote:
> I did a stupid thing and deleted my cron.daily files. Does anybody know
> where they come from so I can recreate them?
>
> Thanks,
>
> --
>
> Knute Johnson
>
This of course is a case of "shutting the stable door after the horse
has bolted" but may I respectfully suggest that in future your system
backup script includes something like
before running the tar command to create a backup archive?
Dave
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 09:50 PM
PleegWat
Help I deleted my cron.daily files
On 07/04/2011 11:12 PM, Knute Johnson wrote:
I did a stupid thing and deleted my cron.daily files. Does anybody know
where they come from so I can recreate them?
Thanks,
On the command line, run the following:
dpkg --search '/etc/cron.daily/*'
That should list all packages storing files in the /etc/cron.daily
directory, and which files they store.
Works here, although of course I still have the files...
I know there's also something on the command line to then reinstall
those packages, but I can't find it offhand. Possibly --install --force.
PleegWat
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 09:53 PM
Knute Johnson
Help I deleted my cron.daily files
On 7/4/2011 2:50 PM, PleegWat wrote:
On 07/04/2011 11:12 PM, Knute Johnson wrote:
I did a stupid thing and deleted my cron.daily files. Does anybody know
where they come from so I can recreate them?
Thanks,
On the command line, run the following:
dpkg --search '/etc/cron.daily/*'
That should list all packages storing files in the /etc/cron.daily
directory, and which files they store.
Works here, although of course I still have the files...
I know there's also something on the command line to then reinstall
those packages, but I can't find it offhand. Possibly --install --force.
PleegWat
I do get a list of the files. If you figure out the instruction to
reload them, please pass it along.
Thanks,
--
Knute Johnson
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 09:54 PM
Knute Johnson
Help I deleted my cron.daily files
On 7/4/2011 2:34 PM, Alan Pope wrote:
On 4 July 2011 22:12, Knute Johnson<ubuntu@knutejohnson.com> wrote:
I did a stupid thing and deleted my cron.daily files. Does anybody know
where they come from so I can recreate them?
Not from one package unfortunately.
e.g /etc/cron.daily/dpkg comes from the dpkg package and
/etc/cron.daily/mlocate comes from the mlocate package.
My natty desktop install has these, fwiw:-
alan@wopr:/etc/cron.daily$ ls
0anacron aptitude google-chrome man-db passwd
apport bsdmainutils google-talkplugin mdadm popularity-contest
apt dpkg logrotate mlocate standard
Cheers,
Al.
Thanks. I've got a list of what was there. And I tried removing and
installing a couple of packages but they didn't put anything in
cron.daily. The system I did the damage to is a 10.04LTS server. I
have an Xu natty system running I could snag a couple of the files from.
--
Knute Johnson
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 10:03 PM
Frank McCormick
Help I deleted my cron.daily files
On 04/07/11 05:50 PM, PleegWat wrote:
On 07/04/2011 11:12 PM, Knute Johnson wrote:
I did a stupid thing and deleted my cron.daily files. Does anybody know
where they come from so I can recreate them?
Thanks,
On the command line, run the following:
dpkg --search '/etc/cron.daily/*'
That should list all packages storing files in the /etc/cron.daily
directory, and which files they store.
Works here, although of course I still have the files...
I know there's also something on the command line to then reinstall
those packages, but I can't find it offhand. Possibly --install --force.
aptitude reinstall <whatever>
--
Cheers
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 10:12 PM
Ric Moore
Help I deleted my cron.daily files
On Mon, 2011-07-04 at 14:54 -0700, Knute Johnson wrote:
> On 7/4/2011 2:34 PM, Alan Pope wrote:
> > On 4 July 2011 22:12, Knute Johnson<ubuntu@knutejohnson.com> wrote:
> >> I did a stupid thing and deleted my cron.daily files. Does anybody know
> >> where they come from so I can recreate them?
> >>
> >
> > Not from one package unfortunately.
> >
> > e.g /etc/cron.daily/dpkg comes from the dpkg package and
> > /etc/cron.daily/mlocate comes from the mlocate package.
> >
> > My natty desktop install has these, fwiw:-
> >
> > alan@wopr:/etc/cron.daily$ ls
> > 0anacron aptitude google-chrome man-db passwd
> > apport bsdmainutils google-talkplugin mdadm popularity-contest
> > apt dpkg logrotate mlocate standard
> >
> > Cheers,
> > Al.
> >
>
> Thanks. I've got a list of what was there. And I tried removing and
> installing a couple of packages but they didn't put anything in
> cron.daily. The system I did the damage to is a 10.04LTS server. I
> have an Xu natty system running I could snag a couple of the files from.
Couldn't you just touch those files and wait for their cron-jobs to
re-populate their contents? See what permissions are set on your Unity
machine and their ownership and set them the same?? It might work. Ric
--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
Linux user# 44256
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 10:22 PM
Avi
Help I deleted my cron.daily files
Ric Moore wrote:
> Couldn't you just touch those files and wait for their cron-jobs to
> re-populate their contents?
Because those files *are* their cron jobs?
--
Avi
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-04-2011, 10:23 PM
Knute Johnson
Help I deleted my cron.daily files
On 7/4/2011 3:03 PM, Frank McCormick wrote:
On 04/07/11 05:50 PM, PleegWat wrote:
On 07/04/2011 11:12 PM, Knute Johnson wrote:
I did a stupid thing and deleted my cron.daily files. Does anybody know
where they come from so I can recreate them?
Thanks,
On the command line, run the following:
dpkg --search '/etc/cron.daily/*'
That should list all packages storing files in the /etc/cron.daily
directory, and which files they store.
Works here, although of course I still have the files...
I know there's also something on the command line to then reinstall
those packages, but I can't find it offhand. Possibly --install --force.
aptitude reinstall <whatever>
I tried that but it doesn't reinstall the cron.daily files. I tried
using dpkg --purge and then using aptitude to install and that found
some of them. I guess their could have been files left over in here
that weren't being used any more.
--
Knute Johnson
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users