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 +4 -4
- data/README.md +1 -1
- data/lib/bard/backup/file_tree.rb +2 -0
- data/lib/bard/backup/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49442669d72632f005a9259c655718af2a0e3ef83031ba765b9417b129ae3575
|
|
4
|
+
data.tar.gz: 10e4f231663300b9a0b7d503eb311bf7cc743ab55282980c998729985712f364
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/bard/backup/version.rb
CHANGED