Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@marcopg.org>2008-11-29 15:53:34 (GMT)
committer Marco Pesenti Gritti <marco@marcopg.org>2008-11-29 15:53:34 (GMT)
commitbe2daca2e03418ddf1fe2fb0adf02e94beaad9b5 (patch)
tree53addd192d427853b3d582533c056b30c8217c79
parentca5de1fd491994f00f222d3ca0d773a2ee4fe5cc (diff)
Add script to sync to sugarlabs.org
-rwxr-xr-xsync15
1 files changed, 15 insertions, 0 deletions
diff --git a/sync b/sync
new file mode 100755
index 0000000..a0315ca
--- /dev/null
+++ b/sync
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+
+import os
+import subprocess
+
+base_dir = os.path.dirname(__file__)
+images_dir = os.path.join(base_dir, 'images')
+dest_dir = 'marco@sugarlabs.org:/var/www-sugarlabs/download/soas/'
+
+def main():
+ subprocess.check_call(['rsync', '-rv', '--progress', '--delete',
+ images_dir, dest_dir])
+
+if __name__ == "__main__":
+ main()