apt-mirror

sudo apt-get install -y apt-mirror

$ cat /etc/apt/mirror.list
set base_path /var/spool/apt-mirror
set nthreads 20
set _tilde 0
deb [arch=amd64] http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
clean http://archive.ubuntu.com/ubuntu