Only limit rsync to one file systen if no --source-mountpoint demands have been set
This commit is contained in:
parent
b11d69c957
commit
85bb2d7290
11
mikes-backup
11
mikes-backup
@ -209,6 +209,11 @@ class MikesBackup:
|
|||||||
#
|
#
|
||||||
return datetime.datetime.now().strftime('%Y-%b-%d_%I%M%p')
|
return datetime.datetime.now().strftime('%Y-%b-%d_%I%M%p')
|
||||||
|
|
||||||
|
#
|
||||||
|
def is_using_source_mountpoints(self):
|
||||||
|
|
||||||
|
return len(self.__source_mountpoint_demands) > 0
|
||||||
|
|
||||||
#
|
#
|
||||||
def demand_source_mountpoints(self):
|
def demand_source_mountpoints(self):
|
||||||
|
|
||||||
@ -631,7 +636,6 @@ class MikesBackup:
|
|||||||
"--stats",
|
"--stats",
|
||||||
"--human-readable",
|
"--human-readable",
|
||||||
"--itemize-changes",
|
"--itemize-changes",
|
||||||
"--one-file-system",
|
|
||||||
"--delete",
|
"--delete",
|
||||||
"--delete-excluded"
|
"--delete-excluded"
|
||||||
]
|
]
|
||||||
@ -643,6 +647,11 @@ class MikesBackup:
|
|||||||
args.append("--log-file")
|
args.append("--log-file")
|
||||||
args.append(log_path)
|
args.append(log_path)
|
||||||
|
|
||||||
|
# Only allow recursion into multiple file systems
|
||||||
|
# if any mountpoints were specified
|
||||||
|
if not self.is_using_source_mountpoints():
|
||||||
|
args.append("--one-file-system")
|
||||||
|
|
||||||
#
|
#
|
||||||
for i in self.__source_dir_includes:
|
for i in self.__source_dir_includes:
|
||||||
args.append("--include")
|
args.append("--include")
|
||||||
|
Loading…
Reference in New Issue
Block a user