A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/e6e8bfea812355b9674f621317d1bda2f43143ce below:

Reorganize usage · orgrim/pg_back@e6e8bfe · GitHub

@@ -280,11 +280,11 @@ func parseCli(args []string) (options, []string, error) {

280 280

pflag.PrintDefaults()

281 281

}

282 282 283 +

pflag.StringVarP(&opts.CfgFile, "config", "c", defaultCfgFile, "alternate config file")

283 284

pflag.BoolVar(&opts.NoConfigFile, "no-config-file", false, "skip reading config file\n")

284 285

pflag.StringVarP(&opts.BinDirectory, "bin-directory", "B", "", "PostgreSQL binaries directory. Empty to search $PATH")

285 286

pflag.StringVarP(&opts.Directory, "backup-directory", "b", "/var/backups/postgresql", "store dump files there")

286 287

pflag.StringVarP(&mode, "backup-file-mode", "m", "0600", "mode to apply to dump files")

287 -

pflag.StringVarP(&opts.CfgFile, "config", "c", defaultCfgFile, "alternate config file")

288 288

pflag.StringSliceVarP(&opts.ExcludeDbs, "exclude-dbs", "D", []string{}, "list of databases to exclude")

289 289

pflag.BoolVarP(&opts.WithTemplates, "with-templates", "t", false, "include templates")

290 290

WithoutTemplates := pflag.Bool("without-templates", false, "force exclude templates")

@@ -297,31 +297,31 @@ func parseCli(args []string) (options, []string, error) {

297 297

pflag.IntVarP(&opts.DirJobs, "parallel-backup-jobs", "J", 1, "number of parallel jobs to dumps when using directory format")

298 298

pflag.IntVarP(&opts.CompressLevel, "compress", "Z", -1, "compression level for compressed formats")

299 299

pflag.StringVarP(&opts.SumAlgo, "checksum-algo", "S", "none", "signature algorithm: none sha1 sha224 sha256 sha384 sha512")

300 +

pflag.BoolVar(&opts.UniformTimestamp, "uniform-timestamp", false, "Use the same timestamp for all pg_back files instead of individual\ncreation times")

300 301

pflag.StringVarP(&purgeInterval, "purge-older-than", "P", "30", "purge backups older than this duration in days\nuse an interval with units \"s\" (seconds), \"m\" (minutes) or \"h\" (hours)\nfor less than a day.")

301 302

pflag.StringVarP(&purgeKeep, "purge-min-keep", "K", "0", "minimum number of dumps to keep when purging or 'all' to keep\neverything")

302 303

pflag.StringVar(&opts.PreHook, "pre-backup-hook", "", "command to run before taking dumps")

303 304

pflag.StringVar(&opts.PostHook, "post-backup-hook", "", "command to run after taking dumps\n")

304 -

pflag.BoolVar(&opts.UniformTimestamp, "uniform-timestamp", false, "Use the same timestamp for all pg_back files instead of individual creation times")

305 305 306 306

pflag.BoolVar(&opts.Encrypt, "encrypt", false, "encrypt the dumps")

307 307

NoEncrypt := pflag.Bool("no-encrypt", false, "do not encrypt the dumps")

308 308

pflag.BoolVar(&opts.EncryptKeepSrc, "encrypt-keep-src", false, "keep original files when encrypting")

309 309

NoEncryptKeepSrc := pflag.Bool("no-encrypt-keep-src", false, "do not keep original files when encrypting")

310 310

pflag.BoolVar(&opts.Decrypt, "decrypt", false, "decrypt files in the backup directory instead of dumping. DBNAMEs become\nglobs to select files")

311 -

pflag.StringVar(&opts.CipherPassphrase, "cipher-pass", "", "cipher passphrase for encryption and decryption\n")

312 -

pflag.StringVar(&opts.CipherPublicKey, "cipher-public-key", "", "AGE public key for encryption; in Bech32 encoding starting with 'age1'\n")

313 -

pflag.StringVar(&opts.CipherPrivateKey, "cipher-private-key", "", "AGE private key for decryption; in Bech32 encoding starting with 'AGE-SECRET-KEY-1'\n")

311 +

pflag.StringVar(&opts.CipherPassphrase, "cipher-pass", "", "cipher passphrase for encryption and decryption")

312 +

pflag.StringVar(&opts.CipherPublicKey, "cipher-public-key", "", "AGE public key for encryption; in Bech32 encoding starting with 'age1'")

313 +

pflag.StringVar(&opts.CipherPrivateKey, "cipher-private-key", "", "AGE private key for decryption; in Bech32 encoding starting with\n'AGE-SECRET-KEY-1'\n")

314 314 315 315

pflag.StringVar(&opts.Upload, "upload", "none", "upload produced files to target (s3, gcs,..) use \"none\" to override\nconfiguration file and disable upload")

316 316

pflag.StringVar(&opts.UploadPrefix, "upload-prefix", "", "add this prefix to uploaded files, similar to a target directory")

317 317

deleteUploaded := pflag.String("delete-uploaded", "no", "delete local file after upload")

318 318

pflag.StringVar(&opts.Download, "download", "none", "download files from target (s3, gcs,..) instead of dumping. DBNAMEs become\nglobs to select files")

319 -

pflag.StringVar(&opts.ListRemote, "list-remote", "none", "list the remote files on s3, gcs, sftp, azure instead of dumping. DBNAMEs become\nglobs to select files")

319 +

pflag.StringVar(&opts.ListRemote, "list-remote", "none", "list the remote files on s3, gcs, sftp, azure instead of dumping. DBNAMEs\nbecome globs to select files")

320 320

purgeRemote := pflag.String("purge-remote", "no", "purge the file on remote location after upload, with the same rules\nas the local directory")

321 321 322 -

pflag.StringVar(&opts.B2Bucket, "b2-bucket", "", "B2 bucket")

323 -

pflag.StringVar(&opts.B2KeyID, "b2-key-id", "", "B2 access key ID")

324 -

pflag.StringVar(&opts.B2AppKey, "b2-app-key", "", "B2 app key")

322 +

pflag.StringVar(&opts.B2Bucket, "b2-bucket", "", "Backblaze B2 bucket")

323 +

pflag.StringVar(&opts.B2KeyID, "b2-key-id", "", "Backblaze B2 access key ID")

324 +

pflag.StringVar(&opts.B2AppKey, "b2-app-key", "", "Backblaze B2 app key")

325 325

B2ForcePath := pflag.String("b2-force-path", "no", "force path style addressing instead of virtual hosted bucket\naddressing")

326 326

B2ConcurrentConnections := pflag.Int("b2-concurrent-connections", 5, "set the amount of concurrent b2 http connections")

327 327

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4