Skip to content

Latest commit

 

History

History
537 lines (336 loc) · 18.1 KB

NEWS.md

File metadata and controls

537 lines (336 loc) · 18.1 KB

Conserve release history

Unreleased

  • Changed: S3 is no longer built by default, because it adds many dependencies. It can be turned on again with --features s3.

24.8.0

  • Fixed: restore --only specifying a subdirectory no longer fails due to parent directories missing from the destination.

  • Fixed: More detail about the causes of errors in the log.

  • restore no longer prints stats, due to internal changes; this will be restored later.

  • Minimum Rust version increased to 1.74 due to updated dependencies.

23.11.0

  • Fixed: Restore now sets Unix user/group ownership on symlinks and directories. Previously, only file ownership was restored. (Setting file ownership typically requires restoring as root.)

  • Performance: Also keep a cache of the existence of blocks that have not yet been read.

  • Changed: The format and keys written by --metrics-json has changed.

  • Changed: New more detailed progress display, especially during backup.

23.9.0

  • S3 support! Enable it with cargo install --features s3, then e.g. cargo backup s3://mybucket.example/.

  • Performance: A simple cache of retrieved decompressed blocks now speeds up restores, especially on relatively slow storage like S3.

  • --debug now shows on stderr only debug messages from Conserve itself and not from dependencies. All the messages are still recorded to the --log-json file if that is given.

  • Robustness: during backup, if the blocks referenced by the previous version are missing or zero length, write new blocks rather than referencing them. This allows the archive to better recover from filesystem corruption so that at least new backups are fully readable.

  • Deprecate low-value --metrics-json.

23.5.0

  • Better progress bars for various operations including validate.

  • Don't complain if unable to chown during restore; this is normal when not run as root.

  • New --log-json global option to capture all logs, and --metrics-json to write out counters.

  • New internal non-breaking format change: backups (in the band header) can now declare some format flags needed to read the backup correctly. If any format flags are set then at least Conserve 23.2.0 is needed to read the backup.

  • New --changes-json option to restore and backup.

  • diff output format has changed slightly to be the same as backup.

  • New diff --json and ls --json.

23.1.1

  • Fixed: User and group mappings are now cached in memory. This fixes a performance regression in restore on the order of 10%.

  • Changed: Timestamps in conserve versions are now in RFC 3339 format, including a T between the date and the time, and a timezone indicator.

23.1.0

  • Switched to CalVer versioning.

  • New: Support for storing, restoring, and listing Unix owner, group, and permissions. Thanks to @believeinlain.

  • Fixed: --exclude /a now also excludes everything under /a from listing, diff, restore, etc. (Previously you would have to write /a/**.)

  • Fixed: validate should not complain about GC_LOCK or .DS_Store files in the archive directory.

v0.6.16

Released 2022-08-12

  • Fixed: Previously, if the first backup in an archive was incomplete, Conserve could get painfully slow, due to a bug that caused it to repeatedly reread the incomplete index. (Thanks to WolverinDEV.)

  • Archives may be specified as URLs: currently only as file:/// URLs.

  • Changed the format of text output from conserve backup -v: it only shows new or changed files (and currently only plain files), and the file state is shown by a single-character prefix similar to conserve diff, rather than a suffix.

  • Changed to use Nutmeg to draw progress bars, which changes their appearance somewhat.

  • Added a --no-progress option.

  • Added a --debug option.

v0.6.15 2021-01-23

  • Find referenced blocks by walking all bands in parallel. This significantly speeds up GC, deletion, etc: 6.5x faster in one test.

  • Exclude patterns changed: patterns starting with a / match against the entire path from the top of the tree, and patterns not starting with a slash match anywhere inside the path. For example, /target/release will only exclude release inside a directory called target in the tree root, but target/release will exclude anything called release inside a directory called target anywhere in the tree.

  • Add new --exclude-from option.

  • Add new --no-stats option.

  • Directories marked with CACHEDIR.TAG are automatically excluded from backups.

v0.6.14 2021-05-20

  • conserve validate reads all indexes before checking block contents, which avoids false-positive warnings when a backup is made simultaneously with validation.

  • New option conserve validate --quick, which checks that referenced data blocks are present on disk without reading their content. Corruption or IO errors inside the blocks will of course not be detected by a --quick validation.

v0.6.13 2021-04-26

  • conserve diff is more useful, and shows whether files have changed size/mtime. (It does not yet compare file content for files with the same metadata.)

v0.6.12 2021-04-11

  • conserve delete --dry-run accurately predicts how much space will be freed.

  • conserve delete plans the whole operation before deleting anything, so if it's interrupted early it's less likely that anything will have been deleted.

  • conserve delete --no-gc was removed; it had limited value.

v0.6.11 2021-03-11

  • Fix the displayed count of blocks written in backup stats.

  • Performance improvements in backup and restore.

  • Better display of deletion stats.

  • New conserve versions --utc option.

  • New conserve versions --newest option (thanks to tkuestner@).

  • Format of conserve versions tabular output changed slightly.

v0.6.10 2020-12-30

Features

  • File, directory and symlink modification times are restored by conserve restore.

  • conserve backup -v shows whether files are new, modified, etc.

v0.6.9 2020-10-31

Features

  • New option conserve size --bytes gives output in bytes, rather than megabytes.

Performance

  • Reading a subtree of a local source is faster, because it no longer reads and discards the whole tree.

  • Small files (under 100kB) are combined into blocks, to allow better cross-file compression and to produce fewer small file reads and writes.

  • Backups use a stitched index as the basis. As a result, Conserve is better able to recognize unchanged files after an interrupted backup.

v0.6.8 2020-10-16

Features

  • New conserve delete command to delete specified backup versions and (by default) blocks they reference.

v0.6.7 2020-10-04

Features

  • New conserve gc command deletes unreferenced blocks, which might have been left behind by a previous interrupted backup.

v0.6.6 2020-08-30

Performance

  • validate and other operations that list all blocks no longer lstat them, which can be a significant performance improvement on some kernels or filesystems.

Features

  • Better progress bars, especially for validate, including an estimated time to completion.

Bug fixes

  • Remove needlessly-alarming warning about empty index hunks.

v0.6.5 2020-07-26

Features

  • New conserve debug unreferenced ARCHIVE lists unreferenced blocks.

  • Conserve now "stitches" together incomplete backups with the previous index. This means that restoring from a backup that did not complete will give the most complete available copy of the tree at that point in time.

Behavior changes

  • The --incomplete option, to read the partial tree from an interrupted backup, is no longer needed and has been removed.

v0.6.4 2020-07-04

Features

  • New conserve restore --only SUBTREE option restores only one subtree of the archive. Thanks to Francesco Gadaleta.

Performance improvements

conserve validate is now significantly faster. Conserve remembers which blocks have been validated and what their uncompressed length is, and uses this when checking that file index entries are valid.

Behavior changes

Some rearrangements to the command-line grammar to make it more concise and consistent:

  • conserve debug commands are now briefer: conserve debug index, conserve debug referenced, conserve debug blocks.

  • conserve source ls DIR is now conserve ls --source DIR.

  • conserve source size DIR is now conserve size --source DIR.

  • conserve tree size is now conserve size.

  • Obsolete global option --ui was removed.

  • The short option for conserve versions --short is now -q.

  • The short option for conserve versions --sizes is now -z.

Internal

  • Change to using structopt for option parsing.

  • Change to using thiserror for error enum construction.

  • Added a new Transport trait, abstracting the IO options for the Archive so that Conserve can in future also access archives over SFTP or in cloud storage.

  • Add tests that Conserve can read and write archives written by older compatible versions. (At present, everything from the 0.6 series that changed the format.)

  • New simpler Archive::backup and Archive::restore public APIs.

Archive format changes

Conserve 0.6.4 uses the same 0.6 archive version, with one compatible addition:

  • BANDTAIL files contain an additional index_hunk_count to enable conserve validate to check that no hunks are missing.

v0.6.3 2020-05-30

Performance improvements

  • Improved performance of incremental backups, by removing check that blocks referenced by the previous backup are still present. In one experiment of writing a large tree with few changes to a moderately-slow USB drive, this cuts overall elapsed time by a factor of about 7x!

    The check is redundant unless the archive has somehow been corrupted: blocks are always written out before the index hunk than references them.

    The basic approach in Conserve is to assume, in commands other than validate, that the archive is correctly formatted, and to avoid unnecessary ad-hoc checks that this is true.

Behavior changes

  • Removed global --stats option. Stats are always shown as info-level messages.

  • Better ISO 8601 style timestamps in conserve versions output.

Bugs fixed

  • Don't panic on timestamps on or before the Unix epoch in 1970. (#100)

  • Correctly count index IO in the backup stats summary. (#87)

Documentation improved

  • Improved, updated, and corrected format and design documentation (in the doc subdirectory of the source tree.)

Archive format changes

  • Conserve 0.6.3 uses the same 0.6 archive format, but backups it writes can only be read by 0.6.3 and later.

  • Add a per-band minimum version (BAND_FORMAT_VERSION), allowing for future additions to the format without requiring a whole new archive. This is stored in band_format_version within the BANDHEAD file. Conserve gives a clean error message if it can't read the per-band minimum version. (#96)

  • Improved index uncompressed size slightly, by omitting the data offset within the block when it is zero, which is common.

API and internal changes

Various, including:

  • Removal of Report concept. Instead, operations return a type-specific Stats describing the work that was done, messages are logged, and progress bars are drawn through the ui module.

  • New small code style guide.

Conserve 0.6.2 2020-02-06

  • Added nanosecond precision to stored mtimes. The main benefit of this is more-precise detection of files that changed less than a second after the previous backup.

  • Changed conserve tree size and conserve source size to report in MB, not bytes, as used elsewhere in the UI.

  • Improved the speed of source tree iteration, and therefore the speed of backups with many unchanged files.

  • Add back conserve versions --sizes, but showing the size of the tree in each version.

  • Improved performance of backup.

Conserve 0.6.1 2020-01-25

  • Improved performance on incremental backup, by only opening source files if we need to read the contents.

Conserve 0.6.0 2020-01-20

  • Changed to new archive format "0.6", which has common block storage across bands, and removes the whole-file hash in favor of per-block hashes.

    To read from Conserve 0.5 archives, use an old Conserve binary. Until 1.0, support for old formats won't be kept in the head version.

  • Added incremental backups! If files have the same size and mtime (tracked with integer second accuracy), they aren't read and stored but rather a reference to the previous block is added.

  • Added a basic conserve diff command, which compares a source directory to a stored tree.

  • Changed to Rust edition 2018.

  • Added command conserve debug index dump.

  • Removed conserve versions --sizes options, as storage is now shared across bands. The size of one stored tree can be measured with conserve tree size.

Conserve 0.5.1 2018-11-11

  • conserve validate checks the archive much more thoroughly.

  • New source size and tree size commands.

  • Progress percentage is now measured as a fraction of the total tree to be copied, which is a more linear measurement.

  • Removed internal timing of operations, shown in --stats. Now that Conserve is increasingly aggressively multithreaded, these times aren't very meaningful, and the implementation causes some lock contention.

Conserve 0.5.0 2018-11-01

  • Conserve 0.5 uses a new format, and can't read 0.4 repositories. The new format has a single blockdir per archive for all file contents, rather than one per band. This significantly reduces space usage and backup time.

  • New command validate checks some (but not yet all) internal correctness and consistency properties of an archive.

  • New commands conserve debug block list and conserve debug block referenced.

  • conserve list-source was renamed to conserve source ls.

  • Better progress bars including percentage completion for many operations.

  • backup, restore, and validate show a summary of what they did.

Conserve 0.4.3 2018-10-13

  • conserve versions has a new --sizes option, to show disk usage by each version.

  • -v option to backup and restore prints filenames as they're processed. --no-progress turns off the progress bar.

Conserve 0.4.2 2018-01-18

  • Commands such as restore and ls that operate on a version, will by default operate on the last complete version, rather than defaulting to the last version altogether and then potentially complaining it's incomplete. Similarly for the SourceTree::open API when given no BandId argument.

  • Some backup work is parallelized using Rayon, giving a mild speedup for large files. There is potential to much more work here, because backups are generally CPU-bound in Snap compression and BLAKE2 hashing, and Conserve should try to use every available core.

  • Various internal rearrangements including treating stored and live trees as instances of a common trait, to enable future features.

Conserve 0.4.1

  • Large files are broken into multiple blocks of 1MB uncompressed content, so that memory use is capped and so that common blocks can potentially be shared.

  • New --exclude GLOB option.

Conserve 0.4.0

  • Switch from Brotli2 to Snappy compression: probably a better speed/size tradeoff for mixed data. (Breaks format compatibility.)

  • Updated to work with Rust 1.22 and current library dependencies.

Conserve 0.3.2

Released 2017-01-08.

  • Flush (sync) archive files to stable storage after they're written. In the event of the machine crashing or losing power in the middle of a backup, this should reduce the chance that there are index blocks pointing to data blocks not on the filesystem.

    Tests show this has little impact on performance and it's consistent with Conserve's value of safety. (Windows 10 performance turns out to be ruined by the Windows Defender antivirus, but if you exclude the archive directory it is fine, even with this change.)

  • New --ui option to choose plain text or fancy colored output, replacing --no-progress.

  • Color UI shows progress bars cleanly interleaved with log messages.

  • Filenames are now only shown during backup and restore when the -v option is given.

  • conserve versions by default shows whether they're complete or not. conserve versions --short gives the same behavior as previously of just listing the version names.

  • conserve ls and conserve restore will by default refuse to read incomplete versions, to prevent you thinking you restored the whole tree when it may be truncated. You can override this with --incomplete, or select an older version with --backup.

Conserve 0.3.1

Released 2016-12-17

  • Fixed Cargo package metadata.

  • New --backup option to conserve ls and conserve restore lets you retrieve older versions.

Conserve 0.3.0

Released 2016-12-11

  • Archive format has changed from 0.2 without backward compatibility.
  • New and changed commands:
    • conserve restore makes Conserve a much more useful backup tool!
    • Renamed list-versions to just versions.
  • Symlinks are backed up and restored. (Only on Unix, they're skipped on Windows because they seem to be rare and to have complicated semantics.)
  • New text-mode progress bar.
  • Compression is substantially faster, through setting Brotli to level 4.

Conserve 0.2.0

Released 2016-04-18

  • Rewrite in lovely Rust.
  • New commands:
    • conserve init: create an archive. (Renamed from init-archive.)
    • conserve backup: copy a directory recursively into a new top-level version in the archive. Incremental backups and exclusions are not yet supported.
    • conserve list-source: show what files are in the source directory and will potentially be backed up.
    • conserve list-versions: show what backups are in the archive.
    • conserve ls: lists files in the latest version in the archive.
  • Changed format:
    • Metadata in json.
    • BLAKE2b hashes.
    • Brotli compression.
  • --stats option shows how much IO was done, how much compression helped, and how much time was taken for various sub-operations.

Conserve 0.1.0

Released 2013-10-01

  • Very basic but functional backup, restore, and validate.