Author Topic: [SOLVED] Zentyal ebackup runs multiple times  (Read 3144 times)

pascal.bach

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
[SOLVED] Zentyal ebackup runs multiple times
« on: January 05, 2011, 10:34:15 am »
Hello,

I configured the Zentyal backup module to do a incremental backup ad 2am. Now I changed it to 1am. But the old backup is still running, this means Zentyal does two backups at the moment one at 1am and one at 2am.

I looked through the cron.d directory and there is only the job at 1am listed. I don't know where the second cronjob could come form. Any suggestions?

BTW I'm using the most recent Zentyal 2.0.13.

Thanks
Pascal
« Last Edit: January 09, 2011, 11:46:03 am by pascal.bach »

pascal.bach

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Zentyal ebackup runs multiple times
« Reply #1 on: January 09, 2011, 11:45:30 am »
After some digging around I found the source of the second backup process.

It was in the crontab of the user ebox. This probably is a leftover from an earlier version of zentyal but I don't know for sure.

To solve the problem just clear the crontab of ebox by executing:

$ sudo crontab -u ebox -r

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: [SOLVED] Zentyal ebackup runs multiple times
« Reply #2 on: January 10, 2011, 01:10:19 pm »
Hi there,

Backup process is launched just once and the code itself has a lock to perform the backup only once.

Best regards,
My secret is my silence...

Plecebo

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: [SOLVED] Zentyal ebackup runs multiple times
« Reply #3 on: February 01, 2011, 06:41:30 pm »
I experienced this same issue.

I had my backups set to start at 9pm, then switched them to 6pm. I noticed that they would run twice, (once at 6pm, and once at 9pm).

Code: [Select]
me@server1:~$ sudo crontab -u ebox -l
0 21 * * 6 /usr/share/ebox-ebackup/ebox-remote-ebackup --full
0 21 * * 0,1,2,3,4,5 /usr/share/ebox-ebackup/ebox-remote-ebackup --incremental
me@server1:~$ sudo crontab -u ebox -r
me@server1:~$ sudo crontab -u ebox -l
no crontab for ebox

I am very sure this will remove the 9pm backup process, but I'll be sure to report back if it doesn't.

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: [SOLVED] Zentyal ebackup runs multiple times
« Reply #4 on: February 01, 2011, 10:19:49 pm »
Hi people,

You're right. There is a bug in if you were launching backup in version prior to 2.0.2 and afterwards which makes you have the backup process starts twice. Once as root user and once as ebox user.

We have developed a migration script to avoid so, which essentially remove the ebox crontab as follows:

Code: [Select]
$ sudo -u ebox crontab -r

We will release a new package (ebox-ebackup 2.0.10) to fix this issue automatically.

Thanks for pointing this out.

Best regards,
My secret is my silence...