Snapshots like the "rollback machine" are available in 
http://alfplayer.com/. Mirrors on my servers and some other systems are 
set to old snapshots to avoid breaking them. I can keep about 5 
months (now there are 3), but I have to purge older snapshots when disk 
usage is too high.

Example to update the configured snapshot:

new_date="$(date -d yesterday +%Y.%m.%d)"
base_url="http://alfplayer.com/parabola";
config_file can be set to pacman.conf or mirrorlist

sed -i 's|\
  \(Include|Server\) = .*|\
  Server = '"$base_url"-"$new_date"'/$repo/os/$arch|'\
  "$config_file"


-- 
Esteban Carnevale <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to