bard-backup 0.16.0 → 0.16.1

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: b04f7c45bf80b1e66501cde66ca37f02def6a887368710c18ebbb6b12e8dd906
4
- data.tar.gz: 2ae3f5a68b9fd1d3166475917b3c0abfdecad4d4e9fdcdba6ebf0f8397f38659
3
+ metadata.gz: 49442669d72632f005a9259c655718af2a0e3ef83031ba765b9417b129ae3575
4
+ data.tar.gz: 10e4f231663300b9a0b7d503eb311bf7cc743ab55282980c998729985712f364
5
5
  SHA512:
6
- metadata.gz: 3647ba74dbeaad6cc519d8cb6a6e8a00166c53a8f885891435d3fd4e800d0a5388395176bdc5ca9b76af3d607de6138fadc845df6a946f32fd7591042c6fa1f1
7
- data.tar.gz: d58dc757b0738f1f0dc1547fe15cf236e95d51f0843a204c1d5e2df8d671c560f4bf237ec27217991d26f241b6f03c036c6a8b8ef889466a55ceb127efb59874
6
+ metadata.gz: 4fc3080141bd0471bd4aca59f9ff357cd1b489948a9db928d32326d906e91f9135292f2852478ad3781c251d10318580a0ef613098cbe0d937a3b397300040c0
7
+ data.tar.gz: cdee3abbb2a48566211df4201738d45b82be2e6370b58e73d73fa4a4e7fa5c493279935b8d946aa8be3756bf4608ddb542a7a3aaf3cca9b546fb772c75ff164a
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Bard::Backup handles backups for a bard project:
4
4
  1. Takes a database dump and uploads it to S3 (or PUTs it to presigned URLs)
5
- 2. Syncs configured data directories to S3 with a local manifest cache
5
+ 2. Syncs configured data directories to S3 with a local manifest cache, skipping the Solid Queue, Cache and Cable SQLite databases Rails keeps in `storage/`
6
6
  3. Deletes old database backups using a backoff heuristic: 48 hours, 30 days, 26 weeks, 24 months, then yearly
7
7
  4. Raises an error if we don't have a database backup from the previous hour
8
8
  5. Optionally encrypts uploaded payloads at rest with AES-256-GCM
@@ -92,6 +92,8 @@ module Bard
92
92
  data_paths.each do |data_path|
93
93
  Dir.glob("#{data_path}/**/*").each do |file|
94
94
  next unless File.file?(file)
95
+ # Rails keeps Solid Queue/Cache/Cable's SQLite databases in storage/: runtime state, not data
96
+ next if File.basename(file).match?(/(\A|_)(queue|cache|cable)\.sqlite3(-wal|-shm|-journal)?\z/)
95
97
  stat = File.stat(file)
96
98
  result[file] = { mtime: stat.mtime.to_f, size: stat.size }
97
99
  end
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  class Backup
3
- VERSION = "0.16.0"
3
+ VERSION = "0.16.1"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel