4 ms·
Show HN: Freshen – A Bash script that freshens up your Arch mirrorlists
This is a bash script I made that automates the mirror updating/refreshing process with curl and rankmirrors. It provides room for tailored mirrorlist URLs, handles backups, and restores from them when errors may occur.
- t1c 2y agoIs this not just a more basic version of reflector?
- cbrbygones 2y agoPretty much.
- t1c 2y agoTbh, not seeing the utility since that's the case, and I'd imagine a majority of Arch users looking for something like this already have reflector.
- Grimeton 2y ago- Wrong shebang (debatable). - Variables not quoted... (This is dangerous) - PACMAN_MIRRORLIST_URL should be set in environment and only be overwritten in the script if the environment doesn't contain it. - No test on the url if it is the right one. - pipefail not set (This is dangerous, too). Use a temp file, read it into an array and work with that. - Curl should use -f (debatable)
- deleted 2y ago[deleted]
- 1vuio0pswjnm7 2y agohttps://archlinux.org/mirrorlist/all/http/ https://archlinux.org/mirrorlist/all/http/ Not only does Arch Linux have some of the best online documentation, one of the most comprehensive package search databases, probably the most useful of all rootfs/bootstrap tarballs, it even has a healthy number of non-TLS mirrors.
- miloszgp2000 2y agoBackup scripts are effective to an extent but for complete, automated and all-inclusive backups for GitHub (and other VCS), consider professional backup vendors, for best data protection. Check out solutions like GitProtect.io :)) https://gitprotect.io/ https://gitprotect.io/