source: llx-pool-tools/trunk/fuentes/install-files/usr/share/llx-pool/actions/xenial/sync-pro-to-lliurex-net-pro.sh @ 1426

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

pool version check

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