summaryrefslogtreecommitdiff
path: root/src/generation.rs
AgeCommit message (Collapse)AuthorFilesLines
2021-01-05refactor: add BackedUpFile to avoid using a tupleLars Wirzenius1-4/+34
The struct is easier to use right.
2021-01-05refactor: move policy on whether to back up a file into a moduleLars Wirzenius1-2/+2
This commit also splits up the src/cmd/backup.rs module into other, smaller, more cohesive modules that are easier to understand and use.
2021-01-04refactor: add a type alias for file identifiers in generationsLars Wirzenius1-15/+18
2021-01-04feat! record whether file was backed up and why, in a generationLars Wirzenius1-22/+31
This changes SQL schema.
2021-01-04feat: add an index for chunk ids lookupsLars Wirzenius1-0/+1
2021-01-01feat: use SQL to look up information for a file, by filenameLars Wirzenius1-14/+24
This speeds things up a lot compared to iterating over all files.
2021-01-01feat! use signed 64 bit integers as file numbers, file countsLars Wirzenius1-17/+15
2021-01-01refactor: move SQL use into sub-moduleLars Wirzenius1-58/+92
This keeps all the SQL related functions closer together, making it easier to make changes to them.
2020-12-31feat: incremental backupLars Wirzenius1-0/+32
This uses the previous, latest generation as a guideline to see what is new or changed.
2020-12-31refactor: add LocalGeneration type for read-only operationsLars Wirzenius1-55/+59
This splits the use of NascentGeneration to more cohesive "new generation being built" versus "existing generation being restored".
2020-12-30feat: add GenerationListLars Wirzenius1-0/+1
Various part of Obnam will need to deal with lists of generations. Abstract this.
2020-12-30feat! store and show timestamp for each backup generationLars Wirzenius1-2/+3
This changes the output format of "obnam list".
2020-12-27add FinishedGenerationLars Wirzenius1-1/+30
2020-12-27refactor: rename Generation to NascentGenerationLars Wirzenius1-4/+4
New name is more descriptive.
2020-12-11feat! store file metadata as JSONLars Wirzenius1-24/+11
This avoids having to add extra columns when we add more metadata support. This may be worth re-thinking later, once things stabilize.
2020-11-23feat: progress reporting to backups and restoresLars Wirzenius1-18/+37
2020-11-10feat: restore a generationLars Wirzenius1-5/+57
2020-11-09fix: minor fixes found by clippyLars Wirzenius1-1/+1
2020-11-08feat: add Generation to represent data in a backup generationLars Wirzenius1-0/+94
The data is stored in an SQLite database file.