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

On various Hardware and OS systems: pi / windows / routers / nas, etc
Post Reply
reza
Posts: 133
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

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

Post by reza » Friday 08 September 2017 19:09

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
Posts: 1530
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8627
Location: The Netherlands
Contact:

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

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

reza
Posts: 133
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

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

Post by reza » Friday 08 September 2017 20:52

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
Posts: 1530
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8627
Location: The Netherlands
Contact:

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

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

reza
Posts: 133
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

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

Post by reza » Saturday 09 September 2017 9:29

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
Posts: 1530
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8627
Location: The Netherlands
Contact:

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

Post by SweetPants » Saturday 09 September 2017 9:35

Can't help you with that, you have to search in the source code for that

reza
Posts: 133
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

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

Post by reza » Saturday 09 September 2017 9:41

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
Posts: 1530
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8627
Location: The Netherlands
Contact:

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

Post by SweetPants » Saturday 09 September 2017 9:57

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: 133
Joined: Tuesday 13 September 2016 9:00
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

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

Post by reza » Saturday 09 September 2017 10:31

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