Adds a new project mirror to our ftp infrastructure
Mirroring projects is fun and easy
add trigger permissions in cf.mirror:
/data/trigger/set/$project mode=2775 owner=$project group=trigger
add files/data/mirror/bin/update-master/$project:
#!/bin/bash
echo "We are master"
#!/bin/bash
rsync -avH --delete projecthost::module/ /data/ftp/.$array/$project/
add symlink in cf.mirror:
/data/ftp/pub/$project -> /data/ftp/.1/$project
if wanted, add vhost config: files/etc/apache2/vhosts.d/mirror/$project.osuosl.org.conf
commit
useradd -m $project
mkdir /data/ftp/.$array/$project
chown $project:$project /data/ftp/.$array/$project
ln -sf /data/ftp/pub/$project /home/$project/data
#!/bin/bash
/data/mirror/bin/trigger-set $project
Your data is in /data/ftp/.$array/$project/
The symlink "data" links there for your convenience.
To signal the server to push your data to the other servers, run the
trigger-$project script.
You should now be able to ssh to ftp-osl.osuosl.org with the username $project and the key that you provided. See the README file in your home directory on that server for instructions on how to upload files.