Documentation ¶
Index ¶
Constants ¶
View Source
const ( PrettyFlag = "pretty" JSONFlag = "json" DetailFlag = "detail" )
View Source
const ( BackupMarkShortDescription = "Marks a backup permanent or impermanent" BackupMarkLongDescription = `` /* 147-byte string literal not displayed */ ImpermanentDescription = "Marks a backup impermanent" ImpermanentFlag = "impermanent" )
View Source
const ( CatchupFetchShortDescription = "Fetches an incremental backup from storage" UseNewUnwrapDescription = "Use the new implementation of catchup unwrap (beta)" )
View Source
const ( WalRestoreUsage = "wal-restore target-pgdata source-pgdata" WalRestoreShortDescription = "Restores WAL segments from storage." WalRestoreLongDescription = "Restores the missing WAL segments that will be needed to perform pg_rewind from storage." )
View Source
const ( WalShowUsage = "wal-show" WalShowShortDescription = "Show storage WAL segments info grouped by timelines." WalShowLongDescription = "Show information such as missing segments for each timeline found in storage. " + "Optionally, show available backups for each timeline." )
View Source
const ( WalVerifyUsage = "wal-verify" WalVerifyShortDescription = "Verify WAL storage folder. Available checks: integrity, timeline." WalVerifyLongDescription = "Run a set of specified checks to ensure WAL storage health." )
View Source
const DaemonShortDescription = "Uploads a WAL file to storage"
View Source
const DeleteGarbageExamples = `` /* 226-byte string literal not displayed */
View Source
const DeleteGarbageUse = "garbage [ARCHIVES|BACKUPS]"
View Source
const UseSentinelTimeDescription = "Use backup creation time from sentinel for backups ordering."
View Source
const UseSentinelTimeFlag = "use-sentinel-time"
View Source
const WalFetchShortDescription = "Fetches a WAL file from storage"
View Source
const WalPrefetchShortDescription = `Used for prefetching process forking
and should not be called by user.`
View Source
const WalPushShortDescription = "Uploads a WAL file to storage"
View Source
const WalgShortDescription = "PostgreSQL backup tool"
Variables ¶
View Source
var ( Cmd = &cobra.Command{ Use: "wal-g", Short: WalgShortDescription, Version: strings.Join([]string{walgVersion, gitRevision, buildDate, "PostgreSQL"}, "\t"), PersistentPreRun: func(cmd *cobra.Command, args []string) { err := internal.AssertRequiredSettingsSet() tracelog.ErrorLogger.FatalOnError(err) if viper.IsSet(internal.PgWalSize) { postgres.SetWalSize(viper.GetUint64(internal.PgWalSize)) } }, } )
View Source
var WalPrefetchCmd = &cobra.Command{ Use: "wal-prefetch wal_name prefetch_location", Short: WalPrefetchShortDescription, Args: cobra.ExactArgs(2), Hidden: true, Run: func(cmd *cobra.Command, args []string) { reconfigureLoggers() folder, err := internal.ConfigureFolder() tracelog.ErrorLogger.FatalOnError(err) failover, err := internal.InitFailoverStorages() tracelog.ErrorLogger.FatalOnError(err) folderReader, err := multistorage.NewStorageFolderReader(folder, failover) tracelog.ErrorLogger.FatalOnError(err) postgres.HandleWALPrefetch(folderReader, args[0], args[1]) }, }
WalPrefetchCmd represents the walPrefetch command
Functions ¶
Types ¶
This section is empty.
Source Files ¶
- backup_fetch.go
- backup_list.go
- backup_mark.go
- backup_push.go
- catchup_fetch.go
- catchup_list.go
- catchup_push.go
- copy.go
- daemon.go
- delete.go
- pg.go
- pgbackrest.go
- pgbackrest_backup_fetch.go
- pgbackrest_backup_list.go
- pgbackrest_wal_fetch.go
- pgbackrest_wal_show.go
- wal_fetch.go
- wal_prefetch.go
- wal_push.go
- wal_receive.go
- wal_restore.go
- wal_show.go
- wal_verify.go
Click to show internal directories.
Click to hide internal directories.