log start/stop times so we can get an idea of how long each sync is taking
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
2845173c2b
commit
52535a0fca
1 changed files with 4 additions and 0 deletions
|
@ -86,7 +86,9 @@ CMD="aws s3 sync \
|
|||
|
||||
# Sync EPEL
|
||||
echo $CMD /srv/pub/epel/ s3://s3-mirror-us-west-1-02.fedoraproject.org/pub/epel/
|
||||
echo "Starting EPEL sync at $(date)" >> /var/log/s3-mirror/timestamps
|
||||
$CMD /srv/pub/epel/ s3://s3-mirror-us-west-1-02.fedoraproject.org/pub/epel/
|
||||
echo "Ending EPEL sync at $(date)" >> /var/log/s3-mirror/timestamps
|
||||
|
||||
for file in $(echo /srv/pub/epel/6/*/repodata/repomd.xml | sed 's#/srv##g'); do
|
||||
aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file"
|
||||
|
@ -98,7 +100,9 @@ done
|
|||
|
||||
# Sync Fedora
|
||||
echo $CMD /srv/pub/fedora/ s3://s3-mirror-us-west-1-02.fedoraproject.org/pub/fedora/
|
||||
echo "Starting Fedora sync at $(date)" >> /var/log/s3-mirror/timestamps
|
||||
$CMD /srv/pub/fedora/ s3://s3-mirror-us-west-1-02.fedoraproject.org/pub/fedora/
|
||||
echo "Ending Fedora sync at $(date)" >> /var/log/s3-mirror/timestamps
|
||||
|
||||
for file in $(echo /srv/pub/fedora/linux/updates/*/*/*/repodata/repomd.xml | sed 's#/srv##g'); do
|
||||
aws cloudfront create-invalidation --distribution-id E2KJMDC0QAJDMU --paths "$file"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue