Hi Rainer,

On 05/10/2017 05:16 PM, Rainer Schuetz wrote:
>> On 10. May 2017, at 16:32, David Macek <david.mace...@gmail.com
>> <mailto:david.mace...@gmail.com>> wrote:
>>
>> Since the actual packages aren't really being deleted when superseded, one
>> could just save the pacman .db files to get the set of up-to-date packages at
>> that time. I can't say if the old packages will stay up indefinitely.
> 
> Ah, excellent. I should have thought of that. Six files, right mingw32/64 and
> msys. They are binaries, right, or just some compressed format? Are their
> sources under version control or would it be possible to somehow generate 
> older
> versions? I kind of dream of git tags, e.g. at important gcc or qt switches...

git would certainly work. Another way of doing this would be hard-
links in a directory tree. For example, rsync has everything built
in to achieve a "time machine" like snapshot. If you have rsync
access to the pacman repo server, its actually just a few lines of
bash:

  cd /your/local/repo/mirror/
  LASTFOLDER=$(ls -1|tail -n1)
  NOWFOLDER=$(date +%s)
  rsync --archive repo.msys2.org:/repo/path/ \
      --link-dest="${LASTFOLDER}/" "${NOWFOLDER}/"
  rm -f current
  ln -s "${NOWFOLDER}" current


You would get one folder every time you run the script. This folder
would contain the *full* repository at that point in time. And since
rsync uses hardlinks for unchanged files, you require just as much
disk space as the *new* or *modified* files will need. You could make
this a daily cron job, for example.

In your pacman repo config, just pick a specific folder to stick to
that time/date, or use "current" to get the newest.

All the best,

    Mario Emmenlauer


--
BioDataAnalysis GmbH, Mario Emmenlauer      Tel. Buero: +49-89-74677203
Balanstr. 43                   mailto: memmenlauer * biodataanalysis.de
D-81669 München                          http://www.biodataanalysis.de/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to