≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #158

Bug #158: Write batch script to automate mirror updates

Kind bug
Product wincent.dev
When Created 2005-03-18T19:17:32Z, updated 2005-03-19T05:28:00Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

Write something in perl, PHP or sh to automate the process of updating the mirrors. As there are now quite a few mirror sites it is becoming more time consuming to maintain them. The script would need to do the following:

1. Checksum the local file. 2. Upload it to the remote site, checking not to overwrite existing files. 3. Download it from the remote site to a temporary storage directory. 4. Checksum downloaded file and compare. 5. Repeat for each mirror site, starting at step 2. 6. Report a summary errors/success.

The script would take two arguments like this:

script-name [mirror-group] [file(s)...] [mirror-group] [files...] ...

Where the mirror group to use would be a switch like eg "-synergy", "-winswitch" etc.

Optional argument: --force or -f to force overwriting existing files.

I'll just hardcode the list of sites in the script itself, as it's not something I want to distribute for general use. If in need of inspiration, check out Fred Sanchez' python script that he uses for automating the building of packages. That kind of thing.

Comments

  1. Greg Hurrell 2005-03-18T19:17:50Z

    Marking as ASSIGNED.

  2. Greg Hurrell 2005-03-19T05:27:45Z

    Many hours of PHP coding and testing later... done.

  3. Greg Hurrell 2005-03-19T05:28:00Z

    Mark as CLOSED.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets