Skip to content

ErSoul/update-linux-torrents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Script to download/update different linux distributions using the most convenient available download tool offered by the respective distribution.

Available distros:

TODO

  • Download directory should be an argument.
  • Torrent client credentials should be setted from arguments.
  • Add preferred download tool option (torrent, zsync, curl). If any of the former tools are not available, default to CURL.
  • Check download integrity with available hashing methods.
  • Verify download with PGP signatures.
  • Offer rtorrent client as an option.
  • Add different flavors for the same distribution.
  • Separate each distribution function to a different file, and source them to the main file.

EXAMPLES

Run script daily through crontab:

0 0 * * * /usr/local/bin/update-distros.sh

Download only ubuntu:

update-distros.sh -d ubuntu

Download Debian and Kali:

update-distros.sh -d debian,kali

NOTIFY ON ERROR

If for some reason the script can't fetch from the official download sites, you can send a notification through the ntfy.sh service.

The topic might be setted from args, or by setting the environment variable NTFY_TOPIC.

update-distros.sh -n $MY_TOPIC

NON-POSIX COMPLIANT

The declare -F statement at the end of the main function is only available for BASH.

About

Shell script to keep updated linux torrents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages