ashmrtn 3bb7879a8c fix(snapshots): cached stream file size (#2690)
* Properly populate file size for cached entries

StreamingFiles don't know their size until they are read. This leads to
entries marked with size 0 because size is not compared when determining
if something is cached or not as the size is sourced from the current
(unread) entry.

Instead, create the dir entry from the previous entry. As StreamingFile
do not allow setting file mode, permissions, owner, etc using the old
entry suffices.

* Use cached entry size for stats

Also use the cached entry size when calculating stats since
StreamingFile has 0 size.

* Update tests for cached files to check size

Check at least the total size of the snapshot is updated when handling
StreamingFiles.
2023-01-20 14:07:39 -08:00
2022-10-01 22:14:52 +00:00
2020-02-05 21:38:16 -08:00
2016-06-12 17:09:12 -07:00
2022-12-28 20:47:01 +00:00

Kopia

Kopia Build Status Slack GoDoc Coverage StatusGo Report Card Contributor Covenant

n.

  1. copy, replica (Polish)
  2. lance, spear
  3. fast and secure backup tool

Kopia is a fast and secure open-source backup/restore tool that allows you to create encrypted snapshots of your data and save the snapshots to remote or cloud storage of your choice, to network-attached storage or server, or locally on your machine. Kopia does not 'image' your whole machine. Rather, Kopia allows you to backup/restore any and all files/directories that you deem are important or critical.

Kopia has both CLI (command-line interface) and GUI (graphical user interface) versions, making it the perfect tool for both advanced and regular users. You can read more about Kopia's unique features -- which include compression, deduplication, end-to-end 'zero knowledge' encryption, and error correction -- to get a better understanding of how Kopia works.

When ready, head to the installation page to download and install Kopia, and make sure to read the Getting Started Guide for a step-by-step walkthrough of how to use Kopia.

Pick the Cloud Storage Provider You Want

Kopia supports saving your encrypted and compressed snapshots to all of the following storage locations:

  • Amazon S3 and any cloud storage that is compatible with S3
  • Azure Blob Storage
  • Backblaze B2
  • Google Cloud Storage
  • Any remote server or cloud storage that supports WebDAV
  • Any remote server or cloud storage that supports SFTP
  • Some of the cloud storage options supported by Rclone
    • Requires you to download and setup Rclone in addition to Kopia, but after that Kopia manages/runs Rclone for you
    • Rclone support is experimental: not all the cloud storage products supported by Rclone have been tested to work with Kopia, and some may not work with Kopia; Kopia has been tested to work with Dropbox, OneDrive, and Google Drive through Rclone
  • Your local machine and any network-attached storage or server
  • Your own server by setting up a Kopia Repository Server

And Kopia uses data deduplication to save you money! Read the repositories help page for more information on supported storage locations.

With Kopia youre in full control of where to store your snapshots; you pick the cloud storage you want to use. Kopia plays no role in selecting your storage locations. You must provision and pay (the storage provider) for whatever storage locations you want to use, and then tell Kopia what those storage locations are. The advantage of decoupling the software (i.e., Kopia) from storage is that you can use whatever storage locations you desire - it makes no difference to Kopia what storage you use. You can even use multiple storage locations if you want to, and Kopia also supports backing up multiple machines to the same storage location.

Kopia in Action

Using Kopia via command-line interface:

asciicast

Using Kopia via graphical user interface (note: the video is of an older version of Kopia and the interface is different in the current version of Kopia, but the main principles of the interface are the same):

Kopia UI Tutorial

Getting Started

See Kopia Documentation for more information.

Building Kopia

See Build Infrastructure for more information on building Kopia and working with the source code.

Licensing

Kopia is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Contribution Guidelines

Kopia is open source and contributions are welcome. For more information on how to contribute see the Contribution Guidelines.

Reporting Security Issues

If you find a security issue you'd like to disclose privately, please contact security@kopia.io or via direct message to maintainers on Slack.

Netlify Status

Description
No description provided
Readme 63 MiB
Languages
Go 97.3%
JavaScript 1%
Makefile 0.8%
Shell 0.6%
HTML 0.3%