Commits

Luke Plant committed 661839e

Added task for uploading sermons more efficiently

  • Participants
  • Parent commits 7ca59d1

Comments (0)

Files changed (1)

     local("rsync -z -r %s/ cciw@christchurchbradford.org.uk:%s" % (usermedia_local, usermedia_production), capture=False)
 
 
+def upload_sermons():
+    local("chmod ugo+r  %s/downloads/sermons/*" % usermedia_local)
+    local("rsync -v --progress --size-only %s/downloads/sermons/* cciw@christchurchbradford.org.uk:%s/downloads/sermons" % (usermedia_local, usermedia_production))
+
+
 def backup_usermedia():
     local("rsync -z -r  cciw@christchurchbradford.org.uk:%s/ %s" % (usermedia_production, usermedia_local), capture=False)
 
 
+
 # TODO:
 #  - backup db task. This should be run only in production, and copies
 #    files to Amazon S3 service.