kamal-backup 0.1.0.pre.1 → 0.1.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7d6d47cf91c1aeb85a212dace05952ea498ac6cd32b375bc528432c6f9fd94e
4
- data.tar.gz: 8e5e8902264e06c87190be87d46981a2b584a5de7ed1cc2a3a161c76cd50864a
3
+ metadata.gz: f90e6e9f02fd3ddb958b6f2c41de4219b36fa3e8ff4b84ea779c7decf74379b5
4
+ data.tar.gz: ab72fc616b324bcceee78c3d0060900e747334bf2ef8f3e962c0d81e0d7674ca
5
5
  SHA512:
6
- metadata.gz: bc1ea52b549651e2a5dca8df1eb7b39cd79e17c4ee41b90a91901638a3137ac42f0a8e1b143dc131754c784601af806c48527474e8cf95eb45ff4389bdb35c49
7
- data.tar.gz: dd9e5881f3475359e8a0707c0741dc371bf2894f56ef61e244959d6e42228093b6192ec529b65d9b6e95482192e5c21c3e53600268dc3304f061cf1a621e8d8a
6
+ metadata.gz: a94b5efc6f8c9727a176899572a758247f1db0150af45f71b6a0f830c95a9294f885d26e67d7b649308f604087e9e318f427033b8428ed663671b0b1cdbda87f
7
+ data.tar.gz: 97cfef328b321fefca4d95c36caf25d3a168e49b97e5de02879d3907a88d61842aa233d6dacb4367e1ac5c6866d2636586e67db91e04f2acfa02057dae318c4b
data/README.md CHANGED
@@ -69,9 +69,21 @@ Run manual commands:
69
69
  ```sh
70
70
  bin/kamal backup
71
71
  bin/kamal backup-list
72
+ bin/kamal backup-check
72
73
  bin/kamal backup-evidence
74
+ bin/kamal backup-logs
73
75
  ```
74
76
 
77
+ Alias reference:
78
+
79
+ | Alias | Expands to | Use |
80
+ |---|---|---|
81
+ | `bin/kamal backup` | `accessory exec backup "kamal-backup backup"` | Run one backup immediately. |
82
+ | `bin/kamal backup-list` | `accessory exec backup "kamal-backup list"` | Show restic snapshots for the configured app. |
83
+ | `bin/kamal backup-check` | `accessory exec backup "kamal-backup check"` | Run `restic check` and store the latest check result. |
84
+ | `bin/kamal backup-evidence` | `accessory exec backup "kamal-backup evidence"` | Print redacted backup evidence JSON. |
85
+ | `bin/kamal backup-logs` | `accessory logs backup -f` | Tail the backup accessory logs. |
86
+
75
87
  ## Commands
76
88
 
77
89
  Commands usually run inside the production backup accessory with `bin/kamal accessory exec backup "kamal-backup <command>"`, or through Kamal aliases such as `bin/kamal backup`. A local gem install is useful when you intentionally want the operator laptop to run restic and database client commands directly.
@@ -43,7 +43,7 @@ module KamalBackup
43
43
  end
44
44
 
45
45
  def redact_url_credentials(value)
46
- value.gsub(%r{(://)([^/\s:@]+)(?::([^/\s@]*))?@}) do
46
+ value.gsub(%r{(://)([^/\s]+)@}) do
47
47
  "#{$1}#{REDACTED}@"
48
48
  end.gsub(/([?&](?:password|token|secret|key|access_key_id|secret_access_key)=)[^&\s]+/i) do
49
49
  "#{$1}#{REDACTED}"
@@ -1,3 +1,3 @@
1
1
  module KamalBackup
2
- VERSION = "0.1.0.pre.1"
2
+ VERSION = "0.1.0.pre.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kamal-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.1
4
+ version: 0.1.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carmine Paolino