rsync problems with --exclude-from=/path/to/exclusion-file

  • Hey guys,


    I have a problem with rsync and the command:

    Code
    --exclude-from=/path/to/exclusion-file



    I would like to protect my backup and exclude the encrypted files by Ransomeware..
    I created a test file (test.locky) and run the rsync job, but rsync ignored the filter and copied "test.locky" every time..



    The filter.list is in "/home/rsync_filter.list":

  • ou.wanted extensions so you need a pattern


    Quoting from http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/


    Zitat

    5. Exclude a specific file type

    To exclude a specific file type that has a specific extension, use the appropriate pattern. For example, to exclude all the files that contains .txt as extension, do the following.


    Code
    $ rsync -avz --exclude '*.txt' source/ destination/
    building file list ... done
    created directory destination
    ./
    dir1/
    dir1/dir2/
    dir3/


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Estimados, buenas noches.


    Estoy buscando la forma de evitar que se respalden las carpetas de .RECYCLE que se habilitan al tener Samba con las carpetas compartidas. A nivel local me sirven porque es el primer lugar de recupero para archivos borrados pero quiero excluir el directorio .recycle dentro del rsync. Entiendo que se hace desde EXTRA OPTIONS pero probando, no doy con el comando correcto.


    Yo tengo una carpeta compartida en el cliente que se llama PCP y adentro, está la .recycle. Yo usé el siguiente comando pero da error:


    --exclude-from=/PCP/.recycle


    Qué me estaría faltando o cómo sería el comando correcto?


    Gracias!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!