I got it!!!!!!!!
Finally I found the solution:
- Configure your first ruleset and save changes
- Execute /usr/share/zentyal/make-backup
- Move the file created to, by example, /home/youruser/first.tar
- Configure your second ruleset and save changes again
- Execute /usr/share/zentyal/make-backup
- Move the file created to /home/youruser/second.tar
- Open your /etc/crontab and add these two tasks:
10 10 * * * root /usr/share/zentyal/restore-backup /home/youruser/first.tar && /usr/share/zentyal/global-action --action saveAllModules
20 20 * * * root /usr/share/zentyal/restore-backup /home/youruser/first.tar && /usr/share/zentyal/global-action --action saveAllModules
restart cron
And you're done!