Author Topic: only full backups  (Read 3117 times)

stefano.migliari

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
only full backups
« on: November 13, 2012, 09:51:40 am »
a few weeks Zentyal 3 does not perform differential backups, but only performs complete.

Does anyone know the solution to this problem?

method: ftp
ferq full backup: weekly
frequency differential backup: daily

help!

stefano.migliari

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: only full backups
« Reply #1 on: November 14, 2012, 10:02:19 pm »
come è possibile che...

da qualche settimana dopo alcuni aggiornamenti zentyal 3 esegue solo backup completi e non esegue più i backup differenziali


Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: only full backups
« Reply #2 on: November 15, 2012, 09:07:25 am »
Hello Stefano,

can you please paste here the file /etc/cron.d/ebox-ebackup ?

stefano.migliari

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: only full backups
« Reply #3 on: November 26, 2012, 04:21:32 pm »
0 23 * * * root test $(date +\%w) -eq 5 &&  nice -n 10 /usr/share/zentyal-ebackup/backup-tool --full
0 23 * * * root test $(date +\%w) -ne 5 &&  nice -n 10 /usr/share/zentyal-ebackup/backup-tool --incremental

skara32

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: only full backups
« Reply #4 on: November 28, 2012, 12:14:29 am »
I have the same problem and same stefano configuration.

method: ftp
ferq full backup: weekly
frequency differential backup: daily

/etc/cron.d/ebox-ebackup
0 23 * * * root test $(date +\%w) -eq 0 &&  nice -n 10 /usr/share/zentyal-ebackup/backup-tool --full
0 23 * * * root test $(date +\%w) -ne 0 &&  nice -n 10 /usr/share/zentyal-ebackup/backup-tool --incremental

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: only full backups
« Reply #5 on: November 28, 2012, 09:18:36 am »
Hello,

both cron files seem normal. If we want to debug this we can put zentyal in debug mode ( http://trac.zentyal.org/wiki/Documentation/EnableDebugMode ) and force a incremental backup with the command ('sudo /usr/share/zentyal-ebackup/backup-tool --incremental')

When it finish we can look this log files for more information:

- /var/log/zentyal/zentyal.log
- /var/log/zentyal/duplicity-debug.log
- /var/log/zentyal/duplicity-command.log

If you want you can send them to me, address is jamor at zentyal.com

Regards,

Javier

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: only full backups
« Reply #6 on: November 28, 2012, 09:47:07 am »
After looking to another related problem I am thinking this is a locale related issue. In which languages do you have installed your zentyal?

Execute ' ls /usr/lib/locale/' if you don't see a 'en_US.UTF9' it is probably the case.

I have a tentative fix I would like you test it. To do so:

1. Assure you have zentyal-common >= 3.0.4
2. Replace the /usr/share/zentyal-ebackup/duplicity-wrapper with the new attached version
3. Regenerate the backupstatus cache with: sudo /usr/share/zentyal-ebackup/update-status4.. Force a incremental backup with sudo /usr/share/zentyal-ebackup/backup-tool incremental

If you tesy it. let me know how it works.
« Last Edit: November 28, 2012, 09:52:55 am by Javier Amor Garcia »

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: only full backups
« Reply #7 on: November 28, 2012, 09:53:10 am »
Edited previous message to fix a path error

shartenauer

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: only full backups
« Reply #8 on: November 28, 2012, 12:55:53 pm »
"ls /usr/lib/locale" shows only C.UTF-8
1) zentyal-common Version 3.0.4
2) replaced the duplicity-wrapper
3) regenerate backupstatus cache with 'sudo /usr/share/zentyal-ebackup/update-status'
Now my revovery tab shows the missing backuped files.
4) 'sudo /usr/share/zentyal-ebackup/backup-tool --incremental' starts the incremental backup for the first time. It works!

Thanks for this fix.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: only full backups
« Reply #9 on: November 28, 2012, 01:05:46 pm »
You are welcome, Shartenauer. I have pushed the new code to the repository.

dboxtester

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: only full backups
« Reply #10 on: November 28, 2012, 05:11:10 pm »
Hello,

thank you for this fix. My problem http://forum.zentyal.org/index.php/topic,13162.0.html is solved with this fix.

Jens

skara32

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: only full backups
« Reply #11 on: November 29, 2012, 10:51:12 am »
Thanks for this fix!

I have another small problem, when backup ends i find two events:
- backup complete ok
- error : Cannot make the automatic backup. root command start 'samba4' failed.
Error output: start: Job is already running: samba4

I have zentyal 3 with zentyal-samba 3.0.9

Also, when i restart my server, the share module don't starts automatically.

thanks