// Aula 3 - Incluir ou excluir dados por listas # vim include-list.txt # include file list # anaconda-ks.cfg /Documentos/ /Imagens/ teste.txt /Downloads/ # rsync -av ~ --files-from ~/include-list.txt /backup/pendrive/ # vim exclude-include-list.txt # exclude-include-list.txt # incluir o diretório inicial /root/ # + /root/ # Incluir o arquivo 'teste.txt' + /root/teste.txt # # Incluir arquivos ocultos + /root/.bash_history + /root/.bashrc # Excluir todos os outros arquivos ocultos - /root/.* # # Incluir todo o diretório "/Documentos/DOC1" e o arquivo 'teste2.txt' + /root/Documentos/ + /root/Documentos/DOC1/ + /root/Documentos/teste2.txt # Exclui todo o restante do diretório '/root/Documentos/' - /root/Documentos/* # # Exlui todo o resto - /root/* $ rsync -av ~ --exclude-from=/root/include-list.txt /backup/pendrive/ # vim exclude-include-list2.txt # exclude-include-list2.txt # include home directory + /root/ # include all ogg and flac files + *.txt + *.zip # excluir arquivos do tipo .wav de cache e temp - *.wav - cache* - temp* - /root/* $ rsync --bwlimit=512 -av ~ --exclude-from=/root/exclude-include-list2.txt /backup/pendrive/