Wysyłanie plików na serwer - rsync

by Mateusz Tymek — on Paste Bin

Head's up! This post was written back in 2009 and is very likely to contain outdated information.

RSYNC musi być zainstalowany po stronie klienta i na serwerze.

strona/scripts/upload.sh

	#!/bin/sh

SRC='/home/mateusz/projekty/strona/'

rsync -ave 'ssh' \
        --filter='merge .rsync-filter' \
        $SRC \
        [email protected]:DIRECTORY

strona/scripts/.rsync-filter

	- /scripts
- /tests
- /nbproject
- /.hg
- /.hgignore
- /.zfproject.xml
- /application/configs/site.xml
- /application/configs/application.ini
- /public/media
- /public/images/captcha
- /public/index.php
- /data/cache
- /library/Zend
- /library/ZendX

użycie:

	cd /home/mateusz/projekty/strona/
./upload.sh

comments powered by Disqus