Page 1 of 1
i want save backup database file (.db) with other name
Posted: Friday 08 September 2017 19:09
by reza
hi guys.
i want save backup database with other name. now when i push backup database i have a file with name: domoticz.db
i want save with my name "reza.db" in my computer, which file in source i must change for save backup file with my name?
i dont want save with domoticz and after save rename this . i want save with reza.db.
can you halp me ?
thank you
Re: i want save backup database file (.db) with other name
Posted: Friday 08 September 2017 20:35
by SweetPants
Why do you want this? If you change it in the source, it will be overwritten after the first update. Why not save it and rename it?
Re: i want save backup database file (.db) with other name
Posted: Friday 08 September 2017 20:52
by reza
SweetPants wrote: ↑Friday 08 September 2017 20:35
Why do you want this? If you change it in the source, it will be overwritten after the first update. Why not save it and rename it?
this is interesting for me that change . now i am change many icons and theme and language etc...
i like learn work with source. now i want learn how save database with this name :domoticz.db . if i want change this , what am i do and after this learning about more option... can you help me ?
reza.db is a example. i am tring to translate domoticz to my language.
Re: i want save backup database file (.db) with other name
Posted: Saturday 09 September 2017 9:01
by SweetPants
reza wrote: ↑Friday 08 September 2017 20:52
i am tring to translate domoticz to my language.
Why not write a language pack?
http://www.domoticz.com/forum/viewforum.php?f=7
How do you want to keep up with changes in domoitcz, nobody is going to help you if you have your own 'special' version.
Re: i want save backup database file (.db) with other name
Posted: Saturday 09 September 2017 9:29
by reza
SweetPants wrote: ↑Saturday 09 September 2017 9:01
reza wrote: ↑Friday 08 September 2017 20:52
i am tring to translate domoticz to my language.
Why not write a language pack?
http://www.domoticz.com/forum/viewforum.php?f=7
How do you want to keep up with changes in domoitcz, nobody is going to help you if you have your own 'special' version.
if i dont update so keep up with changes in domoitcz? is this true ?
i am writing a language But it will take a while, some things can not wirte in language . for example backup name .
Please do not enter into marginal discussions . can you help me for found and change name of download backup database ? which file have name of save and download backup database? thank you
Re: i want save backup database file (.db) with other name
Posted: Saturday 09 September 2017 9:35
by SweetPants
Can't help you with that, you have to search in the source code for that
Re: i want save backup database file (.db) with other name
Posted: Saturday 09 September 2017 9:41
by reza
SweetPants wrote: ↑Saturday 09 September 2017 9:35
Can't help you with that, you have to search in the source code for that
i search but dont found this . ok thank you. any body can you help me for found this between source files?
Re: i want save backup database file (.db) with other name
Posted: Saturday 09 September 2017 9:57
by SweetPants
Then you did not search (well)
grep -r domoticz.db
Binary file domoticz matches
main/SQLHelper.cpp: SetDatabaseName("domoticz.db");
main/WebServer.cpp: reply::set_content_from_file(&rep, OutputFileName, "domoticz.db", true);
main/domoticz.cpp:"\t-dbase file_path (for example D:\\domoticz.db)\n"
main/domoticz.cpp:"\t-dbase file_path (for example /opt/domoticz/domoticz.db)\n"
main/domoticz.cpp: std::string dbasefile = szUserDataFolder + "domoticz.db";
main/domoticz.cpp: sPath += "\\domoticz.db";
main/domoticz.cpp: dbasefile = cmdLine.GetSafeArgument("-dbase", 0, "domoticz.db");
Re: i want save backup database file (.db) with other name
Posted: Saturday 09 September 2017 10:31
by reza
SweetPants wrote: ↑Saturday 09 September 2017 9:57
Then you did not search (well)
i sse SGLHelper and domoticz in main , but i didnt found webserver in search. i think this is related to this file... thank you very much