Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Nightly Backups Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
niels
Newbie
Newbie


Joined: September 23 2007
Location: United States
Online Status: Offline
Posts: 12
Posted: September 29 2007 at 23:37 | IP Logged Quote niels

When I run my nightly backup on the machine that runs PowerHome, do I need to shut it down prior to the backup in order to ensure that the backed-up database file is in a consistent state?

Even better, is there an easy way to make PH do a dump of its entire DB which I can safely backup, then later import like I do with Oracle and MySQL?

Niels.
Back to Top View niels's Profile Search for other posts by niels
 
niels
Newbie
Newbie


Joined: September 23 2007
Location: United States
Online Status: Offline
Posts: 12
Posted: September 30 2007 at 00:01 | IP Logged Quote niels

Looks like ph_backupdb is what I need.
Back to Top View niels's Profile Search for other posts by niels
 
ginigma
Senior Member
Senior Member


Joined: June 18 2006
Location: United States
Online Status: Offline
Posts: 127
Posted: September 30 2007 at 23:17 | IP Logged Quote ginigma

Yep. My actual command is as follows:

ph_backupdb ("C:\HA\PowerHome\Database\Backups\phdbbackup." + string (year (today ())) + string (month (today()), "00") + string (day (today()), "00") + ".db", 0)

I run it daily overnight and that gives each file a unique name.

__________________
Insteon (40 devices) ^ PowerHome (435 links) ^ Logitech Harmony 880
Back to Top View ginigma's Profile Search for other posts by ginigma Visit ginigma's Homepage
 

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