Author |
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: May 30 2022 at 10:17 | IP Logged
|
|
|
Can the Installation Directory of "C:powerhome: be
changed to a different location? Can't seem to find any
way to do so.
My hard drive holds a Backup folder in addition to all
the other stuff. For ease of regular auto-backup I would
like to put the powerhome directory into the backup
folder. EG, "C:\Backup\powerhome"
Otherwise, I end up with two copies.... the original
working copy and the daily backup copy moved weekly to
another drive.
Edited by GadgetGuy - May 30 2022 at 10:18
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: May 30 2022 at 13:09 | IP Logged
|
|
|
This is what I use for a local backup to a second drive (Q
drive) that is within the Box PH is running on:
if(ph_backupdb("Q:\PH-Backup\pwrhome" + ph_replaceall(string(date(today())),"/","-")+".bak",1)=0,ph_ usermessage("Q Drive
BackUp OK"),ph_macroparm( "ANNOUNCE", "Error while writing backup file locally.", 1, "announce.wav", 1.5,"set80") +
ph_usermessage("Q Drive BackUp NOT OK"))
I would think what you want to do is surely possible.
Edited by smarty - May 30 2022 at 13:13
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: May 30 2022 at 13:29 | IP Logged
|
|
|
I know that I didn’t answer your question… but moving PH to a “non-
standard” location (something other that c:\powerhome\ is likely just asking
for additional unforeseen problems…just guessing.
In my approach, I am only backing up the .db file. Everything else is quickly
and easily reinstalled if need be. Sorry I am not more help.
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
GadgetGuy Super User
Joined: June 01 2008 Location: United States
Online Status: Offline Posts: 942
|
Posted: May 30 2022 at 13:40 | IP Logged
|
|
|
Smarty-
Thanks for the reply.
I do back up ph every night to my Backup folder on the
hard drive using ph_backupdb().
In addition, I want to back up the same computer hard
drive every night to an external drive as that folder
also contains the daily backup files of all our home
computers.
This Backup files also include the c:powerhome folder
folder as there is more than the ph database that changes
everyday. I want to capture all ph changes that occur
like web html files, added image file changes, or their
updates. To do so, if I can put everything in a single
Backup file to be copied elsewhere every night, it makes
things easier.
I can do it without that but it takes more effort and
coordination, so just hoping to simplify.
I hoped the ph dir4ectory location might be in the .ini
file but I don't see it, or any other appropriate fie.
__________________ Ken B - Live every day like it's your last. Eventually, you'll get it right!
|
Back to Top |
|
|