Merge pull request #4203 from ThomasWaldmann/rel118

release 1.1.8
This commit is contained in:
TW 2018-12-09 04:09:48 +01:00 committed by GitHub
commit d2cf09c095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
39 changed files with 64 additions and 41 deletions

View File

@ -171,7 +171,7 @@ The best check that everything is ok is to run a dry-run extraction::
Changelog
=========
Version 1.1.8 (2018-12-xx)
Version 1.1.8 (2018-12-09)
--------------------------
Compatibility notes:
@ -196,6 +196,7 @@ Fixes:
- enforce storage quota if set by serve-command, #4093
- invalid locations: give err msg containing parsed location, #4179
- list repo: add placeholders for hostname and username, #4130
- on linux, symlinks can't have ACLs, so don't try to set any, #4044
New features:
@ -223,6 +224,9 @@ Other:
- explicitly convert environment variable to str, #4136
- fix DeprecationWarning: Flags not at the start of the expression, #4137
- support pytest4, #4172
- vagrant:
- use python 3.5.6 for builds
Version 1.1.7 (2018-08-11)

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-BENCHMARK-CRUD 1 "2018-08-11" "" "borg backup tool"
.TH BORG-BENCHMARK-CRUD 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-benchmark-crud \- Benchmark Create, Read, Update, Delete for archives.
.
@ -39,7 +39,7 @@ This command benchmarks borg CRUD (create, read, update, delete) operations.
.sp
It creates input data below the given PATH and backups this data into the given REPO.
The REPO must already exist (it could be a fresh empty repo or an existing repo, the
command will create / read / update / delete some archives named borg\-test\-data* there.
command will create / read / update / delete some archives named borg\-benchmark\-crud* there.
.sp
Make sure you have free space there, you\(aqll need about 1GB each (+ overhead).
.sp

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-BENCHMARK 1 "2018-08-11" "" "borg backup tool"
.TH BORG-BENCHMARK 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-benchmark \- benchmark command
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-BREAK-LOCK 1 "2018-08-11" "" "borg backup tool"
.TH BORG-BREAK-LOCK 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-break-lock \- Break the repository lock (e.g. in case it was left by a dead borg.
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CHANGE-PASSPHRASE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-CHANGE-PASSPHRASE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-change-passphrase \- Change repository key file passphrase
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CHECK 1 "2018-08-11" "" "borg backup tool"
.TH BORG-CHECK 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-check \- Check repository consistency
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-COMMON 1 "2018-08-11" "" "borg backup tool"
.TH BORG-COMMON 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-common \- Common options of Borg commands
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-COMPRESSION 1 "2018-08-11" "" "borg backup tool"
.TH BORG-COMPRESSION 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-compression \- Details regarding compression
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CONFIG 1 "2018-08-11" "" "borg backup tool"
.TH BORG-CONFIG 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-config \- get, set, and delete values in a repository or cache config file
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-CREATE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-CREATE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-create \- Create new archive
.
@ -171,7 +171,7 @@ experimental: include/exclude paths matching PATTERN
experimental: read include/exclude patterns from PATTERNFILE, one per line
.TP
.B \-\-exclude\-caches
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.brynosaurus.com/cachedir/spec.html\fP)
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.bford.info/cachedir/spec.html\fP)
.TP
.BI \-\-exclude\-if\-present \ NAME
exclude directories that are tagged by containing a filesystem object with the given NAME

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-DELETE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-DELETE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-delete \- Delete an existing repository or archives
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-DIFF 1 "2018-08-11" "" "borg backup tool"
.TH BORG-DIFF 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-diff \- Diff contents of two archives
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-EXPORT-TAR 1 "2018-08-11" "" "borg backup tool"
.TH BORG-EXPORT-TAR 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-export-tar \- Export archive contents as a tarball
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-EXTRACT 1 "2018-08-11" "" "borg backup tool"
.TH BORG-EXTRACT 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-extract \- Extract archive contents
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-INFO 1 "2018-08-11" "" "borg backup tool"
.TH BORG-INFO 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-info \- Show archive details such as disk space used
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-INIT 1 "2018-08-11" "" "borg backup tool"
.TH BORG-INIT 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-init \- Initialize an empty repository
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-CHANGE-PASSPHRASE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-KEY-CHANGE-PASSPHRASE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-key-change-passphrase \- Change repository key file passphrase
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-EXPORT 1 "2018-08-11" "" "borg backup tool"
.TH BORG-KEY-EXPORT 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-key-export \- Export the repository key for backup
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-IMPORT 1 "2018-08-11" "" "borg backup tool"
.TH BORG-KEY-IMPORT 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-key-import \- Import the repository key from backup
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY-MIGRATE-TO-REPOKEY 1 "2018-08-11" "" "borg backup tool"
.TH BORG-KEY-MIGRATE-TO-REPOKEY 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-key-migrate-to-repokey \- Migrate passphrase -> repokey
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-KEY 1 "2018-08-11" "" "borg backup tool"
.TH BORG-KEY 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-key \- Manage a keyfile or repokey of a repository
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-LIST 1 "2018-08-11" "" "borg backup tool"
.TH BORG-LIST 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-list \- List archive or repository contents
.
@ -169,6 +169,10 @@ start: time (start) of creation of the archive
time: alias of "start"
.IP \(bu 2
end: time (end) of creation of the archive
.IP \(bu 2
hostname: hostname of host on which this archive was created
.IP \(bu 2
username: username of user who created this archive
.UNINDENT
.sp
Keys for listing archive files:

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-MOUNT 1 "2018-08-11" "" "borg backup tool"
.TH BORG-MOUNT 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-mount \- Mount archive or an entire repository as a FUSE filesystem
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-PATTERNS 1 "2018-08-11" "" "borg backup tool"
.TH BORG-PATTERNS 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-patterns \- Details regarding patterns
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-PLACEHOLDERS 1 "2018-08-11" "" "borg backup tool"
.TH BORG-PLACEHOLDERS 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-placeholders \- Details regarding placeholders
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-PRUNE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-PRUNE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-prune \- Prune repository archives according to specified rules
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-RECREATE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-RECREATE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-recreate \- Re-create archives
.
@ -125,7 +125,7 @@ experimental: include/exclude paths matching PATTERN
experimental: read include/exclude patterns from PATTERNFILE, one per line
.TP
.B \-\-exclude\-caches
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.brynosaurus.com/cachedir/spec.html\fP)
exclude directories that contain a CACHEDIR.TAG file (\fI\%http://www.bford.info/cachedir/spec.html\fP)
.TP
.BI \-\-exclude\-if\-present \ NAME
exclude directories that are tagged by containing a filesystem object with the given NAME

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-RENAME 1 "2018-08-11" "" "borg backup tool"
.TH BORG-RENAME 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-rename \- Rename an existing archive
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-SERVE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-SERVE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-serve \- Start in server mode. This command is usually not used manually.
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-UMOUNT 1 "2018-08-11" "" "borg backup tool"
.TH BORG-UMOUNT 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-umount \- un-mount the FUSE filesystem
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-UPGRADE 1 "2018-08-11" "" "borg backup tool"
.TH BORG-UPGRADE 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-upgrade \- upgrade a repository from a previous version
.

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORG-WITH-LOCK 1 "2018-08-11" "" "borg backup tool"
.TH BORG-WITH-LOCK 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borg-with-lock \- run a user specified command with the repository lock held
.

View File

@ -397,6 +397,14 @@ passphrase should be initially set when initializing an encrypted repo.
If BORG_PASSPHRASE is also set, it takes precedence.
See also BORG_NEW_PASSPHRASE.
.TP
.B BORG_PASSPHRASE_FD
When set, specifies a file descriptor to read a passphrase
from. Programs starting borg may choose to open an anonymous pipe
and use it to pass a passphrase. This is safer than passing via
BORG_PASSPHRASE, because on some systems (e.g. Linux) environment
can be examined by other processes.
If BORG_PASSPHRASE or BORG_PASSCOMMAND are also set, they take precedence.
.TP
.B BORG_NEW_PASSPHRASE
When set, use the value to answer the passphrase question when a \fBnew\fP passphrase is asked for.
This variable is checked first. If it is not set, BORG_PASSPHRASE and BORG_PASSCOMMAND will also

View File

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH BORGFS 1 "2018-08-11" "" "borg backup tool"
.TH BORGFS 1 "2018-12-08" "" "borg backup tool"
.SH NAME
borgfs \- Mount archive or an entire repository as a FUSE filesystem
.

View File

@ -50,7 +50,7 @@ This command benchmarks borg CRUD (create, read, update, delete) operations.
It creates input data below the given PATH and backups this data into the given REPO.
The REPO must already exist (it could be a fresh empty repo or an existing repo, the
command will create / read / update / delete some archives named borg-test-data\* there.
command will create / read / update / delete some archives named borg-benchmark-crud\* there.
Make sure you have free space there, you'll need about 1GB each (+ overhead).

View File

@ -51,7 +51,7 @@ borg create
+-------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| | ``--patterns-from PATTERNFILE`` | experimental: read include/exclude patterns from PATTERNFILE, one per line |
+-------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| | ``--exclude-caches`` | exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html) |
| | ``--exclude-caches`` | exclude directories that contain a CACHEDIR.TAG file (http://www.bford.info/cachedir/spec.html) |
+-------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| | ``--exclude-if-present NAME`` | exclude directories that are tagged by containing a filesystem object with the given NAME |
+-------------------------------------------------------+---------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
@ -127,7 +127,7 @@ borg create
--exclude-from EXCLUDEFILE read exclude patterns from EXCLUDEFILE, one per line
--pattern PATTERN experimental: include/exclude paths matching PATTERN
--patterns-from PATTERNFILE experimental: read include/exclude patterns from PATTERNFILE, one per line
--exclude-caches exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
--exclude-caches exclude directories that contain a CACHEDIR.TAG file (http://www.bford.info/cachedir/spec.html)
--exclude-if-present NAME exclude directories that are tagged by containing a filesystem object with the given NAME
--keep-exclude-tags, --keep-tag-files if tag objects are specified with ``--exclude-if-present``, don't omit the tag objects themselves from the backup archive
--exclude-nodump exclude files flagged NODUMP

View File

@ -129,6 +129,9 @@ Keys for listing repository archives:
- time: alias of "start"
- end: time (end) of creation of the archive
- hostname: hostname of host on which this archive was created
- username: username of user who created this archive
Keys for listing archive files:

View File

@ -43,7 +43,7 @@ borg recreate
+-------------------------------------------------------+---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| | ``--patterns-from PATTERNFILE`` | experimental: read include/exclude patterns from PATTERNFILE, one per line |
+-------------------------------------------------------+---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| | ``--exclude-caches`` | exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html) |
| | ``--exclude-caches`` | exclude directories that contain a CACHEDIR.TAG file (http://www.bford.info/cachedir/spec.html) |
+-------------------------------------------------------+---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| | ``--exclude-if-present NAME`` | exclude directories that are tagged by containing a filesystem object with the given NAME |
+-------------------------------------------------------+---------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
@ -97,7 +97,7 @@ borg recreate
--exclude-from EXCLUDEFILE read exclude patterns from EXCLUDEFILE, one per line
--pattern PATTERN experimental: include/exclude paths matching PATTERN
--patterns-from PATTERNFILE experimental: read include/exclude patterns from PATTERNFILE, one per line
--exclude-caches exclude directories that contain a CACHEDIR.TAG file (http://www.brynosaurus.com/cachedir/spec.html)
--exclude-caches exclude directories that contain a CACHEDIR.TAG file (http://www.bford.info/cachedir/spec.html)
--exclude-if-present NAME exclude directories that are tagged by containing a filesystem object with the given NAME
--keep-exclude-tags, --keep-tag-files if tag objects are specified with ``--exclude-if-present``, don't omit the tag objects themselves from the backup archive

View File

@ -200,6 +200,10 @@ def acl_set(path, item, numeric_owner=False):
cdef acl_t access_acl = NULL
cdef acl_t default_acl = NULL
if stat.S_ISLNK(item.get('mode', 0)):
# Linux does not support setting ACLs on symlinks
return
p = <bytes>os.fsencode(path)
if numeric_owner:
converter = posix_acl_use_stored_uid_gid