i want save backup database file (.db) with other name Topic is solved
Moderator: leecollings
-
- Posts: 112
- Joined: Tuesday 13 September 2016 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Contact:
i want save backup database file (.db) with other name
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
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
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?
-
- Posts: 112
- Joined: Tuesday 13 September 2016 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Contact:
Re: i want save backup database file (.db) with other name
this is interesting for me that change . now i am change many icons and theme and language etc...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?
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
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.
-
- Posts: 112
- Joined: Tuesday 13 September 2016 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Contact:
Re: i want save backup database file (.db) with other name
if i dont update so keep up with changes in domoitcz? is this true ?SweetPants wrote: ↑Saturday 09 September 2017 9:01Why 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.
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
Can't help you with that, you have to search in the source code for that
-
- Posts: 112
- Joined: Tuesday 13 September 2016 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Contact:
Re: i want save backup database file (.db) with other name
i search but dont found this . ok thank you. any body can you help me for found this between source files?SweetPants wrote: ↑Saturday 09 September 2017 9:35 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
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");
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");
-
- Posts: 112
- Joined: Tuesday 13 September 2016 9:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Contact:
Re: i want save backup database file (.db) with other name
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
Who is online
Users browsing this forum: No registered users and 1 guest