Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible commit this #56

Open
ricain59 opened this issue Jul 16, 2019 · 9 comments
Open

Possible commit this #56

ricain59 opened this issue Jul 16, 2019 · 9 comments

Comments

@ricain59
Copy link

Hello,

I've problem with scheduled backup, because if i've choose dom = 2 and dow = 1 and none on dom, the backup work on dom 2, 3 and 4.

I've changed code on automatedbackup.php, view annex (i've renamed on .txt)
automatedbackup.php.txt

I'm not a pro, but works fine.

@zipurman
Copy link
Owner

The code looks fine but I have no way of testing it as I do not use this anymore. In your comments above, can you clarify the issue? You stated that you chose dom = 2 but also dom = none?

@ricain59
Copy link
Author

Of course i try explain more because my english is poor.

On schedule, if i choose DOW = 2 for exemple and day 2nd (week) and dom = empty, the schedule backup occure on 2nd, 3rd and 4th day (week). Because on this if:
"if ( empty( $filedata['numday'] ) || ceil( $dom / 7 ) >= $filedata['numday'] )"

if on 15 july, ceil(15/7) = 3, $filedata['numday'] = 2 (week) , and 3 >= 2 backup started ;) but i want only on 2nd.

I hope you understand my explain.

@zipurman
Copy link
Owner

I understand now. I will review the code and get that fixed. I can test the logic outside of this project to make sure it works 100%. Thanks for pointing this out!

@ricain59
Copy link
Author

Thank you and thanks for your work, this work fine ;)

@zipurman
Copy link
Owner

I have pushed out a change that I think will solve this issue. Please test and let me know.

@ntox
Copy link

ntox commented Aug 30, 2019 via email

@ricain59
Copy link
Author

@ntox : What method use?

@zipurman
Copy link
Owner

Hey @ntox, Hope all is well with you! I no longer use oVirt as I moved my setup to vmware with a 3rd party provider.

Uninstall steps:

On the Engine command line:

rm /usr/share/ovirt-engine/ui-plugins/simpleBackup* -R
service ovirt-engine restart

@ntox
Copy link

ntox commented Aug 30, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants