Skip to content
Snippets Groups Projects
Commit db73ad25 authored by Steve Traylen's avatar Steve Traylen
Browse files

INC4449615 - addition of --delete-excluded

Ticket INC4449615 from CentOS upstream(?) reported that
are rsync'd mirror contains:

```
-rw-------. 317 root root 488636416 Sep 30  2021
/mnt/data1/dist/centos-stream/9-stream/BaseOS/x86_64/debug/tree/Packages/.kernel-debug-debuginfo-5.14.0-2.el9.x86_64.rpm.ItX1Ec
```

for instance which should not be there.

This file is presumably excluded for download due to

* `--exclude=.*rpm.?*`

This exclude is presumably to stop us downloading remote partial downloads ?

However from man page:

> Files that are excluded from the transfer are also excluded from being
  deleted unless you use the --delete-excluded option or
  mark the rules as only matching on the sending side

Note this will have the effect of deleting all files at CERN that are
currently matched by an `--exclude` to stop them being downloaded.

Switching to the filter syntax would a be a significant change.
parent 9c9a9ede
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment