mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-24 08:45:13 +00:00
Merge pull request #4143 from step21/master
Fixed links to cachedir spec in docs and code, fixes #4140
This commit is contained in:
commit
712a02c32b
2 changed files with 3 additions and 3 deletions
|
@ -2487,7 +2487,7 @@ def define_exclude_and_patterns(add_option, *, tag_files=False, strip_components
|
|||
if tag_files:
|
||||
add_option('--exclude-caches', dest='exclude_caches', action='store_true',
|
||||
help='exclude directories that contain a CACHEDIR.TAG file '
|
||||
'(http://www.brynosaurus.com/cachedir/spec.html)')
|
||||
'(http://www.bford.info/cachedir/spec.html)')
|
||||
add_option('--exclude-if-present', metavar='NAME', dest='exclude_if_present',
|
||||
action='append', type=str,
|
||||
help='exclude directories that are tagged by containing a filesystem object with '
|
||||
|
|
|
@ -66,7 +66,7 @@ def get_cache_dir():
|
|||
fd.write(textwrap.dedent("""
|
||||
# This file is a cache directory tag created by Borg.
|
||||
# For information about cache directory tags, see:
|
||||
# http://www.brynosaurus.com/cachedir/
|
||||
# http://www.bford.info/cachedir/spec.html
|
||||
""").encode('ascii'))
|
||||
return cache_dir
|
||||
|
||||
|
@ -85,7 +85,7 @@ def dir_is_cachedir(path):
|
|||
"""Determines whether the specified path is a cache directory (and
|
||||
therefore should potentially be excluded from the backup) according to
|
||||
the CACHEDIR.TAG protocol
|
||||
(http://www.brynosaurus.com/cachedir/spec.html).
|
||||
(http://www.bford.info/cachedir/spec.html).
|
||||
"""
|
||||
|
||||
tag_path = os.path.join(path, CACHE_TAG_NAME)
|
||||
|
|
Loading…
Reference in a new issue