I want to deploy a list of file from inside a file let's say files.lst
:
+ .profile
+ .hg/hgrc
+ .mc/*
- /*
rsync -vvltr . --include-from 'files.lst' . destdir
Desired behaviour:
- copy recusively all the files and directories from
.mc
- copy only
.hg/hgrc
file to destination, ignoring other files that could exist in that directory - copy
.profile
john@server:
right? Otherwise, it would try to sync to a directory called 'john@server' and fail.doesn't work proper
? Wrong files? To many files? Wrong location? Because the--include-files file.LIST
//--include FILE
is the way to go.