On Tue, Feb 24, 2009 at 02:27:18PM -0600, Tim wrote:
> On Tue, Feb 24, 2009 at 2:15 PM, Nicolas Williams
> <nicolas.willi...@sun.com>wrote:
> 
> > On Tue, Feb 24, 2009 at 01:17:47PM -0600, Nicolas Williams wrote:
> > > I don't think there's any way to ask svc.config to pause.
> >
> > Well, IIRC that's not quite right.  You can pstop svc.startd, gently
> > kill (i.e., not with SIGKILL) svc.configd, take your snapshot, then prun
> > svc.startd.
> >
> > Nico
> > --
> 
> 
> Hot Backup?
> 
>  # Connect to the database
>  sqlite3 db $dbfile
>  # Lock the database, copy and commit or rollback
>  if {[catch {db transaction immediate {file copy $dbfile ${dbfile}.bak}} 
> res]} {
>    puts "Backup failed: $res"
>  } else {
>    puts "Backup succeeded"
>  }

SMF uses SQLite2.  Sorry.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to