% cat /usr/local/sbin/mirror-ppa ; echo ======; /usr/local/sbin/mirror-ppa /srv/archive.mmjgroup.com/www/ppa lamont/prairie-net precise,trusty,vivid,wily,xenial
#!/bin/bash -eu
if (( $# < 3 )); then
echo usage: mirror-ppa destination-dir user/ppa-name distlist >&2
echo e.g.: mirror-ppa /srv/archive.mmjgroup.com/www/ppa lamont/prairie-net precise,trusty,vivid,wily,xenial >&2
exit 1
fi
DESTDIR=$1
SRCPPA=$2
DISTLIST=$3
/usr/bin/debmirror --rsync-extra=none --i18n --verbose --dist ${DISTLIST} --arch=amd64,i386 --section=main --host=ppa.launchpad.net --root=${SRCPPA}/ubuntu -e http ${DESTDIR}
======
Warning: --rsync-extra is not configured to mirror the trace files.
This configuration is not recommended.
Mirroring to /srv/archive.mmjgroup.com/www/ppa from http://ppa.launchpad.net/lamont/prairie-net/ubuntu/
Arches: amd64,i386
Dists: precise,trusty,vivid,wily,xenial
Sections: main
Including source.
Pdiff mode: use
Will clean up after mirroring.
Attempting to get lock ...
Getting meta files ...
[ 0%] Getting: dists/precise/Release... ok
[ 0%] Getting: dists/precise/Release.gpg... ok
gpgv: Signature made Sat 21 Nov 2015 03:20:05 PM MST using RSA key ID EA87984F
gpgv: Good signature from "Launchpad PPA for LaMont Jones"
[ 0%] Getting: dists/trusty/Release... ok
[ 0%] Getting: dists/trusty/Release.gpg... ok
gpgv: Signature made Mon 29 Feb 2016 06:51:22 AM MST using RSA key ID EA87984F
gpgv: Good signature from "Launchpad PPA for LaMont Jones"
[ 0%] Getting: dists/vivid/Release... ok
[ 0%] Getting: dists/vivid/Release.gpg... ok
gpgv: Signature made Mon 29 Feb 2016 07:06:02 AM MST using RSA key ID EA87984F
gpgv: Good signature from "Launchpad PPA for LaMont Jones"
[ 0%] Getting: dists/wily/Release... ok
[ 0%] Getting: dists/wily/Release.gpg... ok
gpgv: Signature made Mon 29 Feb 2016 06:51:22 AM MST using RSA key ID EA87984F
gpgv: Good signature from "Launchpad PPA for LaMont Jones"
[ 0%] Getting: dists/xenial/Release... ok
[ 0%] Getting: dists/xenial/Release.gpg... ok
gpgv: Signature made Sun 03 Apr 2016 05:05:10 PM MDT using RSA key ID EA87984F
gpgv: Good signature from "Launchpad PPA for LaMont Jones"
Parsing Packages and Sources files ...
Get Translation files ...
Files to download: 0 B
Downloaded 75 kiB in 5s at 15.01 kiB/s.
Everything OK. Moving meta files ...
Cleanup mirror.
All done.
% ls /srv/archive.mmjgroup.com/www/ppa/dists/xenial/main/
binary-amd64 binary-i386 source