Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rdiff-backup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
rdiff-backup
Commits
b0371fcc
Commit
b0371fcc
authored
Jul 17, 2018
by
Guillaume Hervier
Committed by
Rafael Monnerat
Jul 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to ignore UID/GID when comparing file changes
/reviewed-on
nexedi/rdiff-backup!2
parent
b80dbbd5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
rdiff_backup/Globals.py
rdiff_backup/Globals.py
+4
-0
rdiff_backup/Main.py
rdiff_backup/Main.py
+2
-0
rdiff_backup/rpath.py
rdiff_backup/rpath.py
+1
-0
No files found.
rdiff_backup/Globals.py
View file @
b0371fcc
...
...
@@ -251,6 +251,10 @@ symlink_perms = None
# tempfile.tempdir value on remote connections
remote_tempdir
=
None
# If set, don't compare uid/gid or uname/gname when comparing
# two RORPath
ignore_numerical_ids
=
None
def
get
(
name
):
"""Return the value of something in this module"""
return
globals
()[
name
]
...
...
rdiff_backup/Main.py
View file @
b0371fcc
...
...
@@ -71,6 +71,7 @@ def parse_cmdlineoptions(arglist):
"exclude-globbing-filelist-stdin"
,
"exclude-mirror="
,
"exclude-other-filesystems"
,
"exclude-regexp="
,
"exclude-if-present="
,
"exclude-special-files"
,
"force"
,
"group-mapping-file="
,
"ignore-numerical-ids"
,
"include="
,
"include-filelist="
,
"include-filelist-stdin"
,
"include-globbing-filelist="
,
"include-globbing-filelist-stdin"
,
"include-regexp="
,
...
...
@@ -136,6 +137,7 @@ def parse_cmdlineoptions(arglist):
elif
opt
==
"--always-snapshot-fromfile"
:
with
open
(
arg
,
'rb'
)
as
fin
:
Globals
.
always_snapshot
.
extend
(
tuple
(
line
.
strip
(
'
\
n
'
).
split
(
'/'
))
for
line
in
fin
.
xreadlines
())
elif
opt
==
"--ignore-numerical-ids"
:
Globals
.
set
(
"ignore_numerical_ids"
,
1
)
elif
(
opt
==
"--include"
or
opt
==
"--include-special-files"
or
opt
==
"--include-symbolic-links"
):
...
...
rdiff_backup/rpath.py
View file @
b0371fcc
...
...
@@ -436,6 +436,7 @@ class RORPath:
for
key
in
self
.
data
.
keys
():
# compare dicts key by key
if
self
.
issym
()
and
key
in
(
'uid'
,
'gid'
,
'uname'
,
'gname'
):
pass
# Don't compare gid/uid for symlinks
elif
key
in
(
'uid'
,
'gid'
,
'uname'
,
'gname'
)
and
Globals
.
ignore_numerical_ids
:
pass
elif
key
==
'atime'
and
not
Globals
.
preserve_atime
:
pass
elif
key
==
'ctime'
:
pass
elif
key
==
'nlink'
:
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment