Se você se importa, pode usar rsync
com algo como
rsync -av --files-from=/path/yourlist.txt / remote:/backup
onde
-
/path/yourlist.txt
você pode colocar sua lista de arquivos com o caminho completo -
/
O caminho para adicionar ao nome do arquivo em sua lista (se eles forem pathname completo/
) -
remote:/backup
o nome do host remoto e seu caminho relativo
Você pode ler mais pesquisando por --files-from
do man rsync
[ 1 ]
--files-from=FILE
Using this option allows you to specify the exact list of files to transfer (as read from the specified FILE or - for standard input). It also tweaks the default behavior of rsync to make transferring just the specified files and directories easier:
- The --relative (-R) option is implied, which preserves the path information that is specified for each item in the file (use --no-relative or --no-R if you want to turn that off).
- The --dirs (-d) option is implied, which will create directories specified in the list on the destination rather than noisily skipping them (use --no-dirs or --no-d if you want to turn that off).
- The --archive (-a) option’s behavior does not imply --recursive (-r), so specify it explicitly, if you want it.
- These side-effects change the default state of rsync, so the position of the --files-from option on the command-line has no bearing on how other options are parsed (e.g. -a works the same before or after --files-from, as does --no-R and all other options).
... na página man há mais ...