I'm running CentOS7 and I would like to know how to set up a Bi-Weekly cronjob to download update packages for CentOS6 and CentOS7 (os,extras,updates) from the fastest mirror and place them in the respective folders
/home/User/Desktop /Centos6 /os/ /extras/ /updates/ /Centos7 /os/ /extras/ /updates/
And if its possible to tell it to only download new packages from the last update performed
I'm not a whiz at bash yet but working on it
EDIT: so I think the easiest way would be to set an empty folder as systemroot for yum, then tell yum to downloadonly to a folder created right beforehand with
mkdir -p /home/User/$(date +%M)/Centos6/ mkdir -p /home/User/$(date +%M)/Centos7/
so that way only the last downloaded packages get excluded from the update? Would that work? I just wouldn't know how to separate the base, extras, and updates folders.
I'm trying to stay away from rsync because that seems to freeze constantly because the speed slows down to a crawl on my connection. Yum is better with the fastestmirror plugin that'll automatically switch to another mirror if it gets to slow. That way I don't have to give it constant attention.