do_unlinks1
Execute postponed mirror log need to commands
Usage
do_unlinks [-ahnv]
[-d<directory>]
[<path>]
Overview
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
mirrored used algorithm 1.
-ddir-
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
mirrorlog files.
-
-v -
Verbose listing.
Examples
- do_unlinks -n /var/log/mirror/*
-
List all the delete commands found in /var/log/mirror/. The Debian
mirror-mastercontrol files put the logs of their most recent runs for eachmirrorpackage 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.
Releases
7 releases since Debian 2.1 (Slink); the text changed 3 times.
-a since Debian 3.0 (Woody);
-h since Debian 3.0 (Woody);
-n since Debian 3.0 (Woody);
-v since Debian 3.0 (Woody).