I am at a point, now, where I am engineering a solution for
all my ISO files. I have several Linux and
Windows ISOs always on hand, for convenience.
Each ISO is in its own directory, for example Ubuntu 12.04 server is in
folder linux_isos/Ubuntu/Server/12.04/.
In this particular folder I have the ISO file ubuntu-12.04.5-server-amd64.iso. (For windows ISOs I have the ISO and a key
code file for registrering it after an install)

I set turned my ISO parent directory into a git repository
with this .gitignore file.

#Ignore all those
dumb .ds_store file

.DS_Store

._*

#Generic files to
ignore

*.swp

*.lock

*~

*.out

#not-git files and
folders

#in this case just
ignore .iso files

*.iso

This will ignore all the .iso files, but capture the key
files and rsync files I am going to create in each folder.

I could create one rsync script that grabs every ISO, but
that would kill my network and my storage.
Instead I want to have an rsync script per ISO file. That way if I need to graph my windows 8 ISO
I can simply go to the correct directory and run my script, which will pull down
my file from my remote server.

Rsync script

Here is the rsync script I came up with, feel free to use it
and tweak it.

#!/bin/bash

#Different
Remote location

url=www.example.com

#url=www.example2.com

#Check
for an override name

name=""

if
[ $2 ]

then

name="$2@"

fi

#=======================================

#

#Only
spot you should be changing anything

#Array
contains subfolders and other array contains files/folders to rsync

This sed command saves me from opening the file and editing
it but not much else, I want a command I can run in any directory. I want the one-line to find the name of the
.iso file and put that name into my script.