mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-13 23:59:45 +08:00
Limit --exclude-cloud-files to windows
This commit is contained in:
parent
37d8fba8e4
commit
00be0358c4
1 changed files with 2 additions and 1 deletions
|
|
@ -1094,9 +1094,10 @@ class ResticRunner:
|
||||||
if additional_backup_only_parameters:
|
if additional_backup_only_parameters:
|
||||||
cmd += " {}".format(additional_backup_only_parameters)
|
cmd += " {}".format(additional_backup_only_parameters)
|
||||||
|
|
||||||
# Only restic versions 0.18+ support this parameter
|
# Only restic versions 0.18+ support this parameter under Windows
|
||||||
if (
|
if (
|
||||||
self.ignore_cloud_files
|
self.ignore_cloud_files
|
||||||
|
and os.name == "nt"
|
||||||
and self._binary_version
|
and self._binary_version
|
||||||
and version_parse(str(self._binary_version)) >= version_parse("0.18")
|
and version_parse(str(self._binary_version)) >= version_parse("0.18")
|
||||||
):
|
):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue