Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authorSebastian Dziallas <sebastian@when.com>2009-03-20 23:01:31 (GMT)
committer Sebastian Dziallas <sebastian@when.com>2009-03-20 23:01:31 (GMT)
commitc53f3f979036e59ce97ffb316c9e15ca0db2ce0f (patch)
treefd7e2728eacfc056eabdc0a2a0c14740fcaa9597 /sync
parent5c0babf7276d4826b084777a922f8c8298c433c6 (diff)
update sync script for appliance creation
Diffstat (limited to 'sync')
-rwxr-xr-xsync8
1 files changed, 6 insertions, 2 deletions
diff --git a/sync b/sync
index ac5201f..8a9d3df 100755
--- a/sync
+++ b/sync
@@ -5,11 +5,15 @@ import subprocess
base_dir = os.path.dirname(__file__)
images_dir = os.path.join(base_dir, 'images')
-dest_dir = 'soas@sunjammer.sugarlabs.org:/srv/upload/soas/snapshots/2/'
+livedest_dir = 'soas@sunjammer.sugarlabs.org:/srv/upload/soas/snapshots/2/'
+appliances_dir = os.path.join(base_dir, 'appliances')
+appdest_dir = 'soas@sunjammer.sugarlabs.org:/srv/upload/soas/appliances/'
def main():
subprocess.check_call(['rsync', '-rvt', '--ignore-existing', '--progress', '--delete',
- images_dir + '/', dest_dir])
+ images_dir + '/', livedest_dir])
+ subprocess.check_call(['rsync', '-rvt', '--ignore-existing', '--progress', '--delete',
+ appliances_dir + '/', appdest_dir])
if __name__ == "__main__":
main()