source: llx-pool-tools/trunk/fuentes/install-files/usr/share/llx-pool/actions/trusty/sync-pre-to-pre-lliurex-net.sh @ 1275

Last change on this file since 1275 was 1275, checked in by hectorgh, 4 years ago

adding project files

  • Property svn:executable set to *
File size: 455 bytes
Line 
1#!/bin/bash
2
3SECTION="sync"
4WEIGHT=100
5COMMENT="RSYNC local pre-trusty to lliurex.net/pre-trusty"
6
7echo ""
8echo -n "We are about to rsync local pre-trusty to lliurex.net/pre-trusty . Continue? [y/n] "
9read x
10if [ "$x" = "y" ]; then
11       
12        USERS_AT_HOSTS="syncpool@lliurex.net"
13
14        for uah in $USERS_AT_HOSTS; do
15                /usr/bin/rsync -av --delete /srv/nfs/lliurex1505/pre-trusty/ $uah:/srv/archive/pool/pre-trusty
16        done
17       
18else
19        echo "Nothing to do."
20fi
21
22echo "Done"
Note: See TracBrowser for help on using the repository browser.