i want save backup database file (.db) with other name Topic is solved

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
reza
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

Post 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
SweetPants

Re: i want save backup database file (.db) with other name

Post 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?
reza
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

Post 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.
SweetPants

Re: i want save backup database file (.db) with other name

Post 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.
reza
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

Post 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
SweetPants

Re: i want save backup database file (.db) with other name

Post by SweetPants »

Can't help you with that, you have to search in the source code for that
reza
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

Post 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?
SweetPants

Re: i want save backup database file (.db) with other name

Post 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");
reza
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

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest