github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/state/backups/backups_nonlinux.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  // +build !linux
     5  
     6  package backups
     7  
     8  import (
     9  	"github.com/juju/errors"
    10  )
    11  
    12  // Restore satisfies the Backups interface on non-Linux OSes (e.g.
    13  // windows, darwin).
    14  func (*backups) Restore(_ string, _ RestoreArgs) error {
    15  	return errors.Errorf("backups supported only on Linux")
    16  }