Installa la nostra toolbar!
Howto / Linux
addthis
Rsync howto
Author: Katrame
Visits: 1811
Date: 18.04.2007

The aim of this little howto is to explain very quickly howto take 2 dirs updated:


# rsync -avrz --files-from=$includesfile --exclude-from=$excludefiles $srcdir $trgtdir

the options -avr set how the sync is made:


[ -a, --archive ] archive mode; same as -rlptgoD (no -H, -A)
[ -v, --verbose ] increase verbosity
[ -r, --recursive ] recurse into directories
[ -z, --compress ] compress file data during the transfer

[ --files-from=FILE ] read list of source-file names from FILE
This option allow to read from a file where a list of desired files need to be syncronized

[ --exclude-from=FILE ] read exclude patterns from FILE
This option allow to read from a file where a list of desired files need to be excluded from syncronization

[ $srcdir ] specify local source dir from which the syncronization start

[ $trgtdir ] specify destination dir where the syncronization updates will be made
This option would be as: hostname:path, for example "servername:/tmp/"



Page 1 of 1


Se vuoi discutere con noi su questo articolo o comunque vuoi porci delle domande usa il nostro Forum

COMMENTI

Aggiungi un commento! +
(I commenti verranno moderati prima della pubblicazione)



Top