-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
command line interface for backup/restore options #8170
Comments
+1 |
It will certainly ease the cron job setup as I take a backup from the database and a copy from the data directory every day in the current setup. I hope this issue gets fixed soon 👍 |
This would be very welcome indeed. |
@mart-e I'd like this option too. I've labelled it as wishlist for now. |
Hello, What is the issue with restoring the database using the command line? It's actually very efficient and recommended for large databases.
|
Hello @mart-e, |
Filestore is also just moving a folder inside the localstorage directory. Of course you needs to be aware where it is as it may change between Odoo deployment but hopefully the system administrator knows this. So still a wishlist, I am not against it if somebody makes a nice PR for master with a clean code. |
I've written simple cli program for odoo backup |
While Muhammad's solution suitable for development sever, in production
PS: Previously I have wrongly referred to https://www.odoo.com/apps/modules/10.0/auto_backup/ 2016-10-31 8:13 GMT+07:00 Muhammad Abd al-Rahman notifications@github.com:
*Jasa Add-on Domain Agan ke Google Apps Free Edition * |
Hi @BetaUliansyah, The module you like sounds quite familiar to one that I've made and open sourced to the community. You can find the module here: https://github.com/Yenthe666/auto_backup Regards, |
Hi @Yenthe666 , I misquote the source. I am using your module. But when I replied to this thread, I searched the module I have corrected my previous reply at github. |
It definitely looks like a copy of your module just ported to Odoo 10.0 When you check the "Also Available for Version" options in the app store On 31.10.2016 07:56, Yenthe V.G wrote:
twanda AG |
@treviser thank you for the tip, didn't even notice that. |
@Yenthe666 always happy to be at your service :-) But to be serious: Bruce did change the license to "Odoo proprietary license", you did change the license from AGPL (Version 8.0) to LGPL (Version 9.0) which makes it basically possible to convert it to a propriatery license, but I don't know if this can be done without your consent as an author. What is also astonishing is that Odoo app store allows to use the same app name without clarifying the legal aspects. Whatever the legal situation, morally it is rather smart just to sell your module without even contacting you. |
That's absolutely a lie. |
I personally believe this kind of behaviour is a bit of a problem in the Odoo App Store. I've seen a number of modules carbon copied (or close enough to) without attribution. I don't believe the publishers are unaware of the implications of the license, I am under the impression that they just don't care unless there are significant consequences. I think there needs to be a more effective deterrent for this sort of behaviour by means of a reporting and review mechanism in the Odoo apps store to make it more attractive to publishers. I believe many are likely nervous about publishing their hard work just to have someone purchase it and republish a derivative work (that is close to a copy) under their own name at a cheaper price. I believe some sort of reporting and review mechanism would be beneficial, even if the review is nothing more than a diff check between reported modules. For paid apps Envato seems to do a pretty good job of this and offers better incentives for those who publish with envato exclusively for example, as well as offering single use tiers and multi-use/distribution tiers for reselling derivative works of a module. I believe emulating some of their business processes may be beneficial for the Odoo apps store in order to combat this sort of behaviour. |
@yajo I'm still trying to truly understand the terms "library" and "combined works", so could you elaborate a bit more about your statement? |
You confuse relicensing with depending on some work. Only the author of a project, the owner of the copyright, has the rights to change its license, and that applies under all the *GPL family. That happened from Odoo v8 to v9. When some code is under LGPL, however, that means you can use that code as a library of a private program. Take for instance GTK+. Its license is LGPL 2, so you can create a privative app that uses GTK as a library, but cannot create a privative fork of GTK+ changing its license. Review http://www.gnu.org/licenses/gpl-faq.html, they can help you more than me. |
@yajo Thanks for your reply. Can't porting of a module to a new version in this case be considered as depending on some work (means @Yenthe666 's module version 9.0 under LGPL3) and therefore it is not just a plain relicensing issue? |
No, you depend on other work when you add it to dependencies; when you migrate you are modifying the source of the addon. Think about it: if you could relicense any LGPL work to the license of your wish, it would be the same as publishing your code under the public domain, and the LGPL would have no meaning at all. tl;dr: You can't legally change the license of any project, unless you are the owner of the original source, but you can use that project as a dependency for yours as long as both have compatible licenses. |
That's what I felt also, I just wanted to be very cautious in my statement without proper legal knowledge. Thanks for the clarification. |
Hi guys, For this kind of issue on module publications, you can always contact us at apps odoo com. |
@mart-e In this case it is less a code comparison problem, for me it is questionable how somebody is able to hijack an existing module name for a new Odoo version and changing the license to a proprietary one without Odoo asking for a written consent of the previous authors. Due to this action, @Yenthe666 will not be able to port his own module with his license to version 10 without renaming it, which breaks consistency and leads to total confusion for app store clients. |
Hi @mart-e, Could this be handled as soon as possible please? I've just got an e-mail from somebody that bought this ripped of V10 version on the app store: For the love of god, can we please build in some validations and checks on this? I could literally copy any module, make it paid, choose the licenses and get away with it.. not something good to see. |
You can backup from command line or using cron with: Credits to:http://www.garasiku.web.id/web/joomla/index.php/odoo-openerp/97-odoo-9-backup-using-wget |
Small correction to strip out the extra
|
wget --post-data 'master_pwd=ADMIN_PASSWORD&name=DB_NAME&backup_format=zip' -O back_up_filename.zip http://localhost:8069/web/database/backup What is the command for restore then? |
find out from other web, https://www.odoo.com/forum/help-1/question/restore-takes-at-least-4-arguments-4-given-error-in-restore-odoo-9-via-web-front-end-using-curl-cli-109204 syntaxc for restore database in commandline is |
As there are workarounds provided, I close this. |
I get 400 - Bad request : Invalid CSRF Token for this |
Hi everyone! Since I prefer using curl, this site provides a dedicated post to Odoo backup and restore via CLI :) Just in case -so you don't have to go to the actual site- here's the relevant code for backing up: And for restoring: Backup script (~/odoo_backup.sh):
You can always automate the backup with a cron job, hence the provided script. Hope it helps! |
Hi @Yenthe666 , One more thing, how to config list_db is True? |
You'll need to code something to auto remove thrm every once in a while. |
I have also problem with assets... I got http 401 error after 30-60 minutes... Not only for assets, but for API-s. E.g.: It runs smoothly for an hour but after that it is dead. Everything is 401... It is so sporadically. Running Odoo 11 CE under Docker with nginx. What could be the problem? I am investigating it since 40 hours now... Second failure on same day... Not it gives HTTP 400 for every quest... E.g.: What the hell??! |
@Reechee88 you can take a look at acsone/click-odoo-contrib#33 |
there is no command line interface for backup/restore provided
Impacted versions:
Steps to reproduce:
At
http://localhost:8069/web/database/manager
we have "Backup" and "Restore" options.VS:
No such options available through command line interface, see:
./odoo.py --help
Current behavior:
Expected behavior:
The text was updated successfully, but these errors were encountered: