X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2FMakefile;h=fced5b58d93a878c2faa360b16fc1d86249b540b;hb=a8aa1baef6f4d1df60f44d1d542912acff913226;hp=abd3d3fd15ac4952eb7c0c18c916a2be9f11cda3;hpb=f610fbf6ef97ab37ad1f313f15c3482204dab437;p=infrastructure.git diff --git a/scripts/Makefile b/scripts/Makefile index abd3d3f..fced5b5 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,14 +1,23 @@ -# $Id$ -# $URL$ +SOURCE = ple-backup-cleanup.cron +# dec 2015 : not on boot any more +HOSTS = www -vhosts: - cat VSHOSTS - -vprobe: - vs-probe -f VSHOSTS > VSERVERS - @echo 'refreshed VSERVERS' - cat VSERVERS +ple-backup: + @for host in $(HOSTS); 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