]>
git.proxmox.com Git - proxmox-backup.git/log
Dietmar Maurer [Fri, 28 Jun 2019 05:07:52 +0000 (07:07 +0200)]
file download: avoid unnecessary copy
Dietmar Maurer [Fri, 28 Jun 2019 05:02:43 +0000 (07:02 +0200)]
src/client/http_client.rs - h2 download: implement flow control
Dietmar Maurer [Thu, 27 Jun 2019 09:14:33 +0000 (11:14 +0200)]
debian/control: add clang build dependency
Dietmar Maurer [Thu, 27 Jun 2019 07:01:41 +0000 (09:01 +0200)]
src/api2/reader.rs: implement backup reader protocol
Dietmar Maurer [Wed, 26 Jun 2019 15:29:12 +0000 (17:29 +0200)]
src/server/h2service.rs: implement generic h2 service
Dietmar Maurer [Wed, 26 Jun 2019 10:09:18 +0000 (12:09 +0200)]
src/client/http_client.rs: split out code to start new h2 connections
Dietmar Maurer [Wed, 26 Jun 2019 07:54:25 +0000 (09:54 +0200)]
src/backup/data_{chunk,blob}.rs: add verify_crc method
Dietmar Maurer [Wed, 26 Jun 2019 07:18:59 +0000 (09:18 +0200)]
src/bin/proxmox-backup-client.rs: decode blobs on download
No more need for that clumsy blob cli (removed).
Dietmar Maurer [Wed, 26 Jun 2019 07:17:13 +0000 (09:17 +0200)]
src/client/http_client.rs - download: use generic Write type, return writer.
Make it possible to write int Vec<u8>.
Dietmar Maurer [Wed, 26 Jun 2019 05:32:34 +0000 (07:32 +0200)]
src/backup/crypt_config.rs - generate_rsa_encoded_key: store as json
Use the KeyConfig serialization with kdf = None.
Dietmar Maurer [Tue, 25 Jun 2019 11:00:37 +0000 (13:00 +0200)]
src/bin/proxmox-backup-client.rs: remove stale download file, start blob cli
Dietmar Maurer [Tue, 25 Jun 2019 10:59:36 +0000 (12:59 +0200)]
src/api2/admin/datastore.rs: use correct path for download
Dietmar Maurer [Tue, 25 Jun 2019 10:43:55 +0000 (12:43 +0200)]
src/client/http_client.rs - download: fix error handling
Dietmar Maurer [Tue, 25 Jun 2019 09:17:24 +0000 (11:17 +0200)]
src/bin/proxmox-backup-client.rs: implement download command
Dietmar Maurer [Tue, 25 Jun 2019 08:16:59 +0000 (10:16 +0200)]
src/api2/admin/datastore.rs: implement generic download method
We simply allow to download raw binary data.
Dietmar Maurer [Tue, 25 Jun 2019 07:45:35 +0000 (09:45 +0200)]
src/api2/admin/datastore/pxar.rs: remove pxar upload api
Upload needs to be done using the backup protocol.
Dietmar Maurer [Tue, 25 Jun 2019 06:12:25 +0000 (08:12 +0200)]
src/api2/admin/datastore.rs: use a worker log log prune actions
Dietmar Maurer [Tue, 25 Jun 2019 05:11:02 +0000 (07:11 +0200)]
src/bin/proxmox-backup-client.rs: strip .blob extension
Dietmar Maurer [Tue, 25 Jun 2019 05:07:45 +0000 (07:07 +0200)]
src/backup/backup_info.rs: also list .blob files
Dietmar Maurer [Tue, 25 Jun 2019 05:00:07 +0000 (07:00 +0200)]
src/bin/proxmox-backup-client.rs: change key name to rsa-encrypted.key
Dietmar Maurer [Tue, 25 Jun 2019 04:19:51 +0000 (06:19 +0200)]
src/cli/command.rs: fix ReST output format
Dietmar Maurer [Mon, 24 Jun 2019 11:56:37 +0000 (13:56 +0200)]
src/bin/proxmox-backup-client.rs: upload rsa encoded key after backup
Christian Ebner [Fri, 21 Jun 2019 16:15:01 +0000 (18:15 +0200)]
pxar: impl .pxarexclude parsing and exclude matching
.pxarexclude files allow to exclude or include parts of a subtree by matching
with a glob pattern. The globs are used according to the matches of fnmatch.
In addition '**' can be used to match multiple directories within the path.
Order of the entries matter, as later ones win over previous ones.
As the .pxarexclude files can be placed at any node of the directory hirarchy,
this implies that matching child entries win over parent entries.
The only exception to this behaviour is, when a parent entry already fully
matched the path, thereby excluding the child entries which would match
otherwise.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Mon, 24 Jun 2019 07:35:37 +0000 (09:35 +0200)]
src/api2/backup/environment.rs: new helper add_blob()
Dietmar Maurer [Sun, 23 Jun 2019 07:48:23 +0000 (09:48 +0200)]
src/api2/backup.rs: replace upload_config with upload_blob
Dietmar Maurer [Sun, 23 Jun 2019 07:35:44 +0000 (09:35 +0200)]
src/backup/data_blob.rs: implement from_raw()
Dietmar Maurer [Sun, 23 Jun 2019 07:04:42 +0000 (09:04 +0200)]
src/api2/backup/upload_chunk.rs: compute crc on upload
Dietmar Maurer [Sat, 22 Jun 2019 14:29:10 +0000 (16:29 +0200)]
try to use use proxmox::tools::io::ops::ReadExtOps
Dietmar Maurer [Sat, 22 Jun 2019 13:45:36 +0000 (15:45 +0200)]
src/backup/file_formats.rs: improve docs
Dietmar Maurer [Sat, 22 Jun 2019 11:24:29 +0000 (13:24 +0200)]
src/backup/crypt_config.rs: simplify decode interface
Dietmar Maurer [Sat, 22 Jun 2019 11:02:53 +0000 (13:02 +0200)]
src/backup/crypt_config.rs: remove encode_chunk, use encrypt_to instead
Dietmar Maurer [Sat, 22 Jun 2019 10:25:04 +0000 (12:25 +0200)]
src/backup/crypt_config.rs: implement encrypt_to (output to writer)
Dietmar Maurer [Sat, 22 Jun 2019 07:12:25 +0000 (09:12 +0200)]
src/backup/file_formats.rs: split out file format data
Dietmar Maurer [Fri, 21 Jun 2019 15:24:21 +0000 (17:24 +0200)]
add crc field for binary blobs formats
Dietmar Maurer [Fri, 21 Jun 2019 13:58:00 +0000 (15:58 +0200)]
depend on crc32fast
We can use this to compute fast checksums to test file integrity (not crypto safe).
Dietmar Maurer [Fri, 21 Jun 2019 09:32:07 +0000 (11:32 +0200)]
src/backup/data_blob.rs: new file format for binary blobs
Dietmar Maurer [Fri, 21 Jun 2019 08:41:39 +0000 (10:41 +0200)]
src/backup/crypt_config.rs: make code more flexible
Allow to pass magic numbers as parameters.
Dietmar Maurer [Fri, 21 Jun 2019 07:51:18 +0000 (09:51 +0200)]
renamed: src/backup/crypt_setup.rs -> src/backup/crypt_config.rs
Dietmar Maurer [Fri, 21 Jun 2019 05:34:17 +0000 (07:34 +0200)]
src/bin/proxmox-backup-client.rs: add import-master-pubkey command
Dietmar Maurer [Fri, 21 Jun 2019 05:12:19 +0000 (07:12 +0200)]
src/bin/proxmox-backup-client.rs: helper to generate RSA master key
Dietmar Maurer [Thu, 20 Jun 2019 05:58:33 +0000 (07:58 +0200)]
src/backup/key_derivation.rs: add modified field to key file
Dietmar Maurer [Wed, 19 Jun 2019 15:16:41 +0000 (17:16 +0200)]
src/bin/proxmox-backup-client.rs: add keyfile parameter for backup
Dietmar Maurer [Tue, 18 Jun 2019 16:21:01 +0000 (18:21 +0200)]
src/bin/proxmox-backup-client.rs - key API: pass kdf parameter
Allow to store keys without password.
Dietmar Maurer [Tue, 18 Jun 2019 15:38:50 +0000 (17:38 +0200)]
src/bin/proxmox-backup-client.rs: use file system path to reference keys
Dietmar Maurer [Tue, 18 Jun 2019 15:27:52 +0000 (17:27 +0200)]
src/bin/proxmox-backup-client.rs - create_key: always read password from tty
Dietmar Maurer [Tue, 18 Jun 2019 09:17:22 +0000 (11:17 +0200)]
src/backup/key_derivation.rs: move kdf code into separate file
Dietmar Maurer [Tue, 18 Jun 2019 04:23:25 +0000 (06:23 +0200)]
Cargo.toml: use serde feature derive
Dietmar Maurer [Mon, 17 Jun 2019 11:10:00 +0000 (13:10 +0200)]
src/bin/proxmox-backup-client.rs: implement "key change-passphrase"
Dietmar Maurer [Mon, 17 Jun 2019 08:33:24 +0000 (10:33 +0200)]
src/bin/proxmox-backup-client.rs: start key management
Dietmar Maurer [Fri, 14 Jun 2019 12:58:37 +0000 (14:58 +0200)]
src/backup/*_index.rs: used generated magic numbers
Dietmar Maurer [Fri, 14 Jun 2019 09:40:04 +0000 (11:40 +0200)]
src/tools.rs: move hex_to_digest and digest_to_hex to proxmox::tools
Dietmar Maurer [Fri, 14 Jun 2019 08:36:20 +0000 (10:36 +0200)]
src/api2/backup/environment.rs: log index checksums
Dietmar Maurer [Fri, 14 Jun 2019 08:34:29 +0000 (10:34 +0200)]
src/backup/fixed_index.rs: compute checksum over the index
Dietmar Maurer [Fri, 14 Jun 2019 06:57:52 +0000 (08:57 +0200)]
src/backup/dynamic_index.rs: compute checksum over the index
Dietmar Maurer [Fri, 14 Jun 2019 05:12:30 +0000 (07:12 +0200)]
src/api2/backup/environment.rs: log duplicate chunks
Dietmar Maurer [Fri, 14 Jun 2019 04:23:46 +0000 (06:23 +0200)]
src/api2/backup/upload_chunk.rs: verify chunk data if possible
Dietmar Maurer [Thu, 13 Jun 2019 15:24:57 +0000 (17:24 +0200)]
src/bin/cipherbench.rs: add test for zstd compression
Dietmar Maurer [Thu, 13 Jun 2019 15:16:43 +0000 (17:16 +0200)]
src/bin/cipherbench.rs: cipher speed test with large blocks
Dietmar Maurer [Thu, 13 Jun 2019 14:42:38 +0000 (16:42 +0200)]
src/backup/data_chunk.rs: fix typo
Dietmar Maurer [Thu, 13 Jun 2019 10:56:50 +0000 (12:56 +0200)]
src/backup/data_chunk.rs: only use compressed data if it is shorter than uncompressed
Dietmar Maurer [Thu, 13 Jun 2019 10:47:54 +0000 (12:47 +0200)]
src/backup/crypt_setup.rs: only use compressed data if it is shorter than uncompressed
Dietmar Maurer [Thu, 13 Jun 2019 09:47:23 +0000 (11:47 +0200)]
backup: Add support for client side encryption
first try ...
Dietmar Maurer [Thu, 13 Jun 2019 09:44:38 +0000 (11:44 +0200)]
src/backup/data_chunk.rs - decode: make crypt_config optional
Dietmar Maurer [Thu, 13 Jun 2019 05:35:59 +0000 (07:35 +0200)]
src/backup/crypt_setup.rs: add comment for possible improvements
Dietmar Maurer [Thu, 13 Jun 2019 05:35:02 +0000 (07:35 +0200)]
src/backup/data_chunk.rs: Moved ChunkInfo from merge_known_chunks.rs
Dietmar Maurer [Thu, 13 Jun 2019 05:30:42 +0000 (07:30 +0200)]
src/api2/types.rs: define CHUNK_DIGEST_SCHEMA
Dietmar Maurer [Wed, 12 Jun 2019 04:30:03 +0000 (06:30 +0200)]
src/backup/data_chunk.rs: Data Chunk builder
Make handling encoded chunks easier.
Wolfgang Bumiller [Wed, 12 Jun 2019 11:16:36 +0000 (13:16 +0200)]
use ssh+git for the proxmox repository
This works for me, note the `ssh://` protocol, and using `/`
to separate the path instead of `:`.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Mon, 10 Jun 2019 07:56:06 +0000 (09:56 +0200)]
src/backup/crypt_setup.rs: fix encoder for uncompressed chunks
Dietmar Maurer [Mon, 10 Jun 2019 06:27:35 +0000 (08:27 +0200)]
src/backup/crypt_setup.rs: allow compressed and uncompressed chunks
Dietmar Maurer [Mon, 10 Jun 2019 05:55:36 +0000 (07:55 +0200)]
src/backup/crypt_setup.rs: remove unused CryptData struct
Dietmar Maurer [Sun, 9 Jun 2019 09:44:17 +0000 (11:44 +0200)]
src/backup/crypt_setup.rs: avoid useless allocations
Dietmar Maurer [Sat, 8 Jun 2019 08:34:20 +0000 (10:34 +0200)]
src/backup.rs: define magic numbers for chunk store file format
Dietmar Maurer [Sat, 8 Jun 2019 07:51:49 +0000 (09:51 +0200)]
src/backup/crypt_setup.rs: crypto helpers
Dietmar Maurer [Fri, 7 Jun 2019 15:34:53 +0000 (17:34 +0200)]
depend on ../proxmox/proxmox
I was unable to use a git url ...
Wolfgang Bumiller [Fri, 7 Jun 2019 11:14:03 +0000 (13:14 +0200)]
use nightly for now
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Fri, 7 Jun 2019 11:10:56 +0000 (13:10 +0200)]
tree-wide: use 'dyn' for all trait objects
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Christian Ebner [Thu, 6 Jun 2019 11:37:07 +0000 (13:37 +0200)]
pxar: introduce fs_feature_flags obtained from filesystem magic in Encoder
Not all filesystems support features such as xattrs,acl,... and trying to get
them is rather expensive.
By getting the supported features based on the filesystem magic and masking the
user set feature flags, unsupported features are excluded rather inexpensively
while encoding the archive.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Thu, 6 Jun 2019 10:28:25 +0000 (12:28 +0200)]
src/pxar/encoder.rs: refactoring: use ioctl calls from src/tools/fs.rs instead of local
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Wed, 5 Jun 2019 12:37:25 +0000 (14:37 +0200)]
src/pxar/encoder.rs: minor refactoring
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Wed, 5 Jun 2019 12:26:16 +0000 (14:26 +0200)]
src/pxar/encoder.rs: check if ioctl supported by filesystem
Reading the quota project id relies on a ioctl call to get fsxattr.
On FUSE filesystems, ioctl calls might not be supported and will fail with
an errno indicating no support.
For these cases, the error is ignored and the default project id is used
(indicated by returning Ok(None)).
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Fri, 7 Jun 2019 05:52:11 +0000 (07:52 +0200)]
src/api2/admin/datastore.rs: remove test-upload api
Dietmar Maurer [Fri, 7 Jun 2019 05:39:41 +0000 (07:39 +0200)]
src/api2/admin/datastore/upload.rs: remove unused upload api
Dietmar Maurer [Wed, 5 Jun 2019 09:41:50 +0000 (11:41 +0200)]
src/client/http_client.rs: automatically close connection in finish
Wolfgang Bumiller [Wed, 5 Jun 2019 07:45:59 +0000 (09:45 +0200)]
make h2 client connection cancellable
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Wolfgang Bumiller [Wed, 5 Jun 2019 07:44:43 +0000 (09:44 +0200)]
bump zstd-sys version
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Wed, 5 Jun 2019 06:41:20 +0000 (08:41 +0200)]
src/backup.rs; use a macro to define PROXMOX_BACKUP_PROTOCOL_ID_V1
So that we can include it in static doc strings.
Dietmar Maurer [Wed, 5 Jun 2019 06:12:13 +0000 (08:12 +0200)]
src/backup.rs: define const PROXMOX_BACKUP_PROTOCOL_ID_V1
Dietmar Maurer [Wed, 5 Jun 2019 05:57:42 +0000 (07:57 +0200)]
src/tools/xattr.rs: fix test when run as root
Dietmar Maurer [Wed, 5 Jun 2019 05:23:21 +0000 (07:23 +0200)]
src/api2.rs: move backup api to /backup
Christian Ebner [Wed, 29 May 2019 13:43:34 +0000 (15:43 +0200)]
src/bin/proxmox-backup-proxy.rs: fix typo in pkcs12 error message
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Wed, 5 Jun 2019 04:27:39 +0000 (06:27 +0200)]
src/pxar/encoder.rs: style fix
Christian Ebner [Wed, 29 May 2019 12:34:05 +0000 (14:34 +0200)]
pxar: impl storing/dumping/restoring of quota project ids
Allows to store/dump/restore the quota project id associated with an inode in
order to correctly restore project quotas.
The project id is obtained/set via ioctl calls getting/setting the fsxattr
associated with the given file descriptor.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Wed, 29 May 2019 12:34:04 +0000 (14:34 +0200)]
src/pxar/format_definition.rs: add CA_FORMAT_QUOTA_PROJID and CaFormatQuotaProjID
Defines the types needed to store/restore quota project ids in pxar
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Christian Ebner [Wed, 29 May 2019 12:34:03 +0000 (14:34 +0200)]
src/tools/fs.rs: impl ioctl calls to get/set fsxattr
This implements fs_ioc_fsgetxattr/fs_ioc_fssetxattr calls in order to read or
write fsxattr for a given file descriptor.
This is needed in order to read or write the quota project id for filesystems
which support project quotas (EXT4/XFS/FUSE).
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
Dietmar Maurer [Tue, 4 Jun 2019 15:33:12 +0000 (17:33 +0200)]
docs/backup-protocol.rst: add backup protocol docs
Dietmar Maurer [Tue, 4 Jun 2019 11:12:42 +0000 (13:12 +0200)]
src/bin/dump-backup-api.rs: helper to generate backup API docs
Dietmar Maurer [Tue, 4 Jun 2019 10:42:02 +0000 (12:42 +0200)]
src/api_schema/format.rs: depend on textwrap, new wrap_text helper
Dietmar Maurer [Tue, 4 Jun 2019 06:24:50 +0000 (08:24 +0200)]
src/cli/command.rs: move doc generator code to src/api_schema/format.rs
Dietmar Maurer [Mon, 3 Jun 2019 08:53:09 +0000 (10:53 +0200)]
src/client/http_client.rs - upload_config: improve error message