Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sync
blob: a0315ca839b0d66dba5ff308e07b06ba3b3c00a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()