Return to Snippet

Revision: 8789
at October 8, 2008 08:40 by brcha


Initial Code
###                                           ###
## Synchronize arthur with local copy          ##
###                                           ###

all:
        @echo "Synchronize arthur with backup on sirius"
        @echo "Type:"
        @echo "  make sync - synchronize"
        @echo "  make put  - put the local files to arthur"
        @echo "  make get  - get files from arthur"

get:
        @echo -e "\033[01;01mGetting data from arthur...\033[01;00m"
        @rsync -avuzbP --rsh=ssh --exclude '*~' 192.168.1.6:/home/brcha/ ./
        @echo -e "\033[01;01mGetting data from arthur... \033[01;32mdone\033[01;00m"

put:
        @echo -e "\033[01;01mPutting data to arthur... \033[01;00m"
        @rsync -Cavuzb --no-group --rsh=ssh --exclude '*~' ./ 192.168.1.6:/home/brcha/
        @echo -e "\033[01;01mPutting data to arthur... \033[01;32mdone\033[01;00m"

sync: get put

Initial URL

                                

Initial Description

                                

Initial Title
Simple backup solution

Initial Tags
backup, ssh

Initial Language
Makefile