---
name: "do_unlinks"
section: "1"
platform: "linux"
package: "mirror"
version: "2.9-55"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/do_unlinks"
---

# do\_unlinks(1)

execute postponed mirror log NEED TO commands

## NAME

do\_unlinks - execute postponed mirror log NEED TO commands

## SYNOPSIS

**do\_unlinks** \[-ahnv\] \[-d\<directory\>\] \[...\<path\>\]

## DESCRIPTION

**do\_unlinks** is a utility perl script which scans  **mirror** log files for lines starting *NEED TO* and executes a command to remove a file or subdirectory following on the line.

## OPTIONS

- **-a**

  Delete directories as well as files (default: delete only files). This should only be used if the tree was **mirror**ed used algorithm 1.

- **-d** *dir*

  Only do deletes within the directory tree *dir* (Default: /home/ftp/pub/).

- **-h**

  Print a help message and do nothing.

- **-n**

  List deletes but do nothing (Default: list and do deletes).

- *path*

  A *path* to **mirror** log files.

- **-v**

  Verbose listing.

## EXAMPLES

- **do\_unlinks -n** */var/log/mirror/\**

  List all the delete commands found in */var/log/mirror/*. The Debian **mirror-master** control files put the logs of their most recent runs for each **mirror** package in */var/log/mirror/*.

## HINTS

The **mirror** script outputs *NEED TO* log lines when the number of files or directories it will delete during a run is greater than permitted by its keywords *max\_delete\_files* and *max\_delete\_dirs*. This can happen if the remote directory tree is changed near its root.  Changing the directory tree locally to match the remote instead of using **do\_deletes** will save downloads.

## AUTHOR

The author of the **do\_unlinks** script is Lee McLoughlin and the source of the script is:

http://sunsite.org.uk/packages/mirror/

## COPYRIGHT

The copyright statement can be found in the file

/usr/share/doc/mirror/copyright.

## SEE ALSO

HTML documentation at **/usr/share/doc/mirror/html/mirror.html**. [**mirror-master**(1)](/mirror-master/1.md), [**mirror**(1)](/mirror/1.md).
