Documentation
¶
Index ¶
- Constants
- Variables
- func ApplyPendingRestore(dataDir, dbType string) error
- type BackupInfo
- type Service
- func (s *Service) ApplyRetention(keep int) error
- func (s *Service) BackupPath(name string) (string, error)
- func (s *Service) CreateBackup(reason string) (BackupInfo, error)
- func (s *Service) DeleteBackup(name string) error
- func (s *Service) ImportBackup(filename string, r io.Reader) (BackupInfo, error)
- func (s *Service) ListBackups() ([]BackupInfo, error)
- func (s *Service) PrepareRestore(name string) error
- func (s *Service) RestorePostgresBackup(name string) error
- func (s *Service) SetNotifier(n *notify.Notifier)
- func (s *Service) StartScheduler(ctx context.Context)
- func (s *Service) SupportsSQLiteArchive() bool
Constants ¶
View Source
const (
MaxArchiveBytes int64 = 512 * 1024 * 1024
)
Variables ¶
View Source
var ErrSQLiteOnly = errors.New("fonction backup disponible uniquement en mode sqlite")
Functions ¶
func ApplyPendingRestore ¶
Types ¶
type BackupInfo ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ApplyRetention ¶
func (*Service) CreateBackup ¶
func (s *Service) CreateBackup(reason string) (BackupInfo, error)
func (*Service) DeleteBackup ¶
func (*Service) ImportBackup ¶
func (*Service) ListBackups ¶
func (s *Service) ListBackups() ([]BackupInfo, error)
func (*Service) PrepareRestore ¶
func (*Service) RestorePostgresBackup ¶
func (*Service) SetNotifier ¶
func (*Service) StartScheduler ¶
func (*Service) SupportsSQLiteArchive ¶
Click to show internal directories.
Click to hide internal directories.