Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: ph Installation Directory Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: May 30 2022 at 10:17 | IP Logged Quote GadgetGuy

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 View GadgetGuy's Profile Search for other posts by GadgetGuy
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: May 30 2022 at 13:09 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: May 30 2022 at 13:29 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: May 30 2022 at 13:40 | IP Logged Quote GadgetGuy

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 View GadgetGuy's Profile Search for other posts by GadgetGuy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum