sfatag=3.1.9
[infrastructure.git] / scripts / Makefile
index abd3d3f..87ef0f6 100644 (file)
@@ -1,14 +1,21 @@
-# $Id$
-# $URL$
+SOURCE=ple-backup-cleanup.cron
 
-vhosts:
-       cat VSHOSTS
-
-vprobe:
-       vs-probe -f VSHOSTS > VSERVERS
-       @echo 'refreshed VSERVERS'
-       cat VSERVERS
+ple-backup:
+       @for host in www boot; do for name in ple-backup ple-cleanup; do \
+           fqdn=$$host.planet-lab.eu; target=/etc/cron.daily/$$name.cron; \
+           echo pushing $(SOURCE) onto $$fqdn as $$target; \
+           rsync -av $(SOURCE) root@$$fqdn:$$target; \
+       done ; done
 
+########################################
 vcheck:
-       vs-netcheck -f VSERVERS
+       vs-check -f VSERVERS
+
+vshow:
+       vs-show -l -f VSERVERS
+
+vcache:
+       vs-show -f VSERVERS > VCACHE
 
+vshowcache:
+       vs-show -l -f VCACHE