dupload.conf(5)
π dupload.conf β the config file for dupload, and yes bestie it's literally Perl π
okay so you want to tell dupload where to send your precious little packages, and this is the file that does it. buckle up, it's giving config-file energy, it's giving Perl, it's iconic.
β¨ DESCRIPTION β¨
So the thing you need to know first: this config file is just Perl code. Not "Perl-like", not "a config format that kinda resembles Perl" β it gets pulled in by the dupload script via do $config, and it is read as Perl code. The way that it does that? Yeah. No cap.
Every dupload.conf has to start with this, or it simply will not vibe:
package config;
Because config is the namespace dupload expects. Periodt.
wanna see examples? go look at the global config file /etc/dupload.conf, it's right there.
It contains associative arrays, each indexed by the nickname (that's the thing you pass to the --to option of dupload), for the following items:
the per-nickname keys π
fqdn[required] β the fully qualified domain name (FQDN) of the nickname. π«Ά For thecopymethod, this option is ignored and the local FQDN will be used instead.method[optional] β the transfer method. here are your options bestie:ftp(default)http(since 2.9.9)https(since 2.9.9)scp(since 1.8)scpb(since 1.17)rsync(over SSH; since 2.4.1)copy(local filesystem; since 2.9.0)
If you're using an upload queue, use ftp because it is fast. If you're using an authenticated host, always use https, or one of scp or rsync via SSH, because ftp transmits the password in clear text. π¨ like, in the open. in the clear. no.
For scp and rsync to work properly, you have to set up the remote and local host to establish a ssh/slogin connection using .shosts/.rhosts or the files in ~/.ssh/. If you do not want or cannot do that, you may find scpb more convenient since it uploads in batch, reducing the number of password prompts. π
The only major caveat of the rsync and scpb options is that the files are processed in a batch mode, i.e. not separately, so in case of an error dupload will not be able to detect which part of the transfer failed, and just delete the .upload file completely. π
login[optional] β the account name used to log into the remote host. Forftpthe default isanonymous, which should work with firewall logins too. Forscp,scpbandrsyncthe default is delegated to SSH and its own configuration. Forhttpandhttpsthere is no default.passwordcmd[optional] (since 2.9.9) β the command to retrieve a password. It is expected to output the password on stdout.
If this option has not been specified, and the secret-tool program is installed, this command will be used to retrieve the password from a system secrets store via the Secret Service interface:
secret-tool lookup host host user user service dupload
If the command fails, then the password will be requested from a prompt. β¨
password[optional] β the FTP password for anonymous logins.filemode[optional] (since 2.9.1) β the destination files mode, in octal. If the value isundef, the mode will not be modified. The default is0644.incoming[required] β incoming directory, the directory we try to upload to. π₯queuedir[optional] β the directory we move the uploaded files to (after successful upload toincoming). Usually necessary only with some special upload queues.keyrings[optional] (since 2.12.0) β the list of OpenPGP keyrings containing OpenPGP certificates that are used to verify signatures allowed for uploads to this host. Used by the OpenPGP verification hook. πdistallowlist[optional] (since 2.9.6) β the regex of the distributions allowed for this host. This check is done against theDistributionfield in the.changesfile.distblocklist[optional] (since 2.9.6) β the regex of the distributions blocked for this host. This check is done against theDistributionfield in the.changesfile.mail[optional] (since 2.9.9) β the email addresses ("to"and"cc") where the announcement about the upload for the"match"distribution should be sent. π§
This is an array of hashes with the following keys:
match[required] β the regex of the distribution that needs to match to send an announcement.to[required] β email address where the announcement about the packages is sent.cc[optional] β email address where to send a copy address of the announcement.
fullname[optional] β your full name, one that should appear in the announcement. If you leave this setting empty, the default will depend on your mail system. Usually the full name will be copied from the GCOS field in/etc/passwd.visibleuser[optional] β your username that should appear in the announcement. Defaults togetlogin().visiblename[optional] β the host/domain name that appears as the part to the right of the@character in the from-part of the announcement. Defaults to the value your local MTA likes.passive[optional] (since 2.0) β set the passive mode for FTP transfers. SinceduploadusesNet::FTP, you can also use the environment variableFTP_PASSIVE.options[optional] (since 2.6.3.1) β an array reference containing option strings (since 2.10.2), that will be added verbatim to the command line of anyscporrsynccalls done. For backwards compatibility it can also be specified as a scalar string, but this usage is discouraged and will be deprecated in the future. β οΈdinstall_runs[optional] (since 2.1) β tellsduploadthat the remote host runsdinstall(or equivalent) so thatduploadwill not send a duplicate announcement mail. The default is0(false), set it to1to enable it.archive[optional] (since 2.0) β if set to0(false), adds aX-No-Archive: yesheader in the announcement. The default is1(true).
the global variables π
The configuration files also contain the following global variables:
default_host[optional] (since 2.1) β the default host to upload to. The default value of this variable is set depending on the current vendor, but if there is no configuration for that vendor it will be left unset.mta[optional] (since 2.9.8) β the pathname to a sendmail compatible MTA. The MTA specified must support the-foption to set the envelope sender address, and the-Foption to set the sender's full name. The default is/usr/sbin/sendmail.no_parentheses_to_fullname[optional] (since 2.1) β preventsduploadto add parentheses around the full name when making mail announcements. Default is0(false), set it to1to enable it.
πͺ HOOKS πͺ
Hooks are a powerful way to add actions which will be run before or after a dupload (like the preinst and postinst script of dpkg). main character behaviour fr fr.
You have two sorts of hooks: pre-upload and post-upload. Both are simple shell commands (executed by sh -c so you can use any shell tricks). Pre-uploads are always run (even in dry mode) and stop dupload if they fail (failure being measured by the hook's exit status). Post-uploads are only run when you are not in dry mode and only if the uploading succeeded. π
Hooks get information about themselves and the nickname acted on through the environment (since 2.10.0), with several matching the configuration options for the current nickname:
DUPLOAD_HOOKβ the hook category.DUPLOAD_HOSTβ the host nickname.DUPLOAD_METHODβ same as themethodoption.DUPLOAD_FQDNβ same as thefqdnoption.DUPLOAD_LOGINβ same as theloginoption.DUPLOAD_INCOMINGβ same as theincomingdiroption.DUPLOAD_QUEUEDIRβ same as thequeuediroption.DUPLOAD_KEYRINGSβ same as thekeyringsoption.DUPLOAD_SSH_OPTIONSβ same as theoptionsoption.DUPLOAD_FTP_PASSIVEβ same as thequeuediroption.
okay bestie I need you to know that last one is literally what the page says βDUPLOAD_FTP_PASSIVEis documented as "same as thequeuediroption". I'm not playing games with you, I'm just delivering the facts with my whole chest. π
Both sorts of hooks are run for a given category: changes, sourcepackage, package, file, deb and host.
changesβ this hook is run once per changes file (given as an argument todupload) with the filename as its parameter.sourcepackageβ this hook is run once per changes file with the source package name and its version as its two parameters.packageβ this hook is run once per binary package (a deb file) with the package name and its version as its two parameters.fileβ this hook is run once per uploaded file, with the file name as its parameter.debβ this hook is run once per binary package (a deb file) with the filename as its parameter.host(since 2.10.0) β this hook is run once before any other pre hook and after any post hook, with the host name as its parameter.
βοΈ Syntax βοΈ
Hooks are defined in two Perl hashes, %preupload and %postupload, each indexed by category. In addition to the global hashes, each host entry has two fields with the same names, for the host-specific hooks.
Hooks are defined as array references with each item executed in sequence.
The shell command will be substituted first: %1 will be replace by the first argument, etc.
π Per-host or global hooks π
Hooks can be global (for all the hosts) or can be for a specific host. Host specific hooks override the global ones for each category. periodt.
πΈ Examples πΈ
This one runs lintian before uploading. It is global and guarantees that you will always upload lintian-clean packages (thanks to lintian return status).
$preupload{'deb'} = [ 'lintian -v -i %1' ];
This one just display the name and versions of successfully uploaded packages.
$postupload{'package'} = [ 'echo PACKAGE %1 %2 uploaded' ];
Unlike the two others, this one is specific to one host, debian-ssh, and overrides the default global hook in charge of checking the OpenPGP signatures:
$cfg{'debian-ssh'}{preupload}{'changes'} = [ 'echo Uploading %1' ];
π FILES π
/etc/dupload.conf~/.dupload.conf--configfile config-file
The configuration files are loaded if available in the order listed, overriding previous files. so the later ones win, bestie, keep that in mind. π«Ά
π± ENVIRONMENT π±
FTP_FIREWALLFTP_PASSIVEβ those ofNet::FTPfor theftpmethod.http_proxyorHTTP_PROXYhttps_proxyorHTTPS_PROXYall_proxyorALL_PROXYno_proxyREQUEST_METHODβ those ofHTTP::Tinyfor thehttpandhttpsmethods.
okay that's the whole page and you ate it, I'm so proud of you π this was dupload.conf(5) from the Debian Project, version 2.14.0, dated 2026-05-10. now go upload something iconic, and remember: https, scp, or rsync when there's a password involved. mwah π
β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: dupload 2.14.0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms