rsync command
Lorenzo Luengo
lluengo at dgeo.udec.cl
Thu Nov 27 13:15:16 UTC 2008
CLIFFORD ILKAY escribió:
> Kaushal Shriyan wrote:
>
>> Hi
>>
>> I have a directory logfiles and inside it it has lots of sub
>> directories. Inside it there are lots of .gz, .txt and .sql files
>>
>> I want only .sql files to be rsynced to the destination host
>>
>> is there a way to achieve it using rsync utility
>>
>
> man rsync
>
> Read about the --filter, --exclude, and --include parameters. Always use
> the --dry-run parameter to test first, particularly if you're doing any
> variant of --delete.
>
yes! or mavye you can try something like rsync -rz *.sql [remote
host/folder]
--
Lorenzo Luengo Contreras
Administrador de Sistemas DGEO
Universidad de Concepción
Concepción - Chile
+56-41-2207277
More information about the ubuntu-users
mailing list