Skip to content
Snippets Groups Projects
Select Git revision
  • c3015b1454f4f24bc9dd037741add6a11ef9d351
  • master default protected
  • 7771-harden-postgres-backup
  • pgsql-dump-with-snapshots
  • update-colors
  • update-docs-css
  • usb-repair-stick
  • desktop-notification
  • 7000-corrections
  • db-detector
10 results

50_File_dirs.job.md

Blame
  • user avatar
    Hahn Axel (hahn) authored
    02be46d2
    History

    dist file

    # ----------------------------------------------------------------------
    #
    # jobfile for directories:
    # - which directories you want to backup
    #
    # ----------------------------------------------------------------------
    #
    # SYNTAX: 
    # [variable] = [value]
    #
    # - variable must start in first column
    # - char "=" must be surrounded by space
    # - value - any string; no " needed
    #
    # ----------------------------------------------------------------------
    
    
    # ----------------------------------------------------------------------
    # directory list to transfer
    # without ending "/"
    # missing directories on a system will be ignored
    # ----------------------------------------------------------------------
    
    # --- /etc ... just in case
    include = /etc
    
    # --- system logs
    include = /var/log
    
    # --- user homes
    include = /home
    
    # --- web folder
    include = /var/www
    
    
    # ----------------------------------------------------------------------
    # excludes
    # see duplicity ... added as -exclude-regex parameter
    # ----------------------------------------------------------------------
    
    # exclude = .*\.(swp|tmp)
    
    # mac file
    # exclude = \.DS_Store
    
    # all files below a dir named "cache"
    # exclude = /cache/.*
    # exclude = /.cache/.*
    # exclude = local/share/Trash/*
    # exclude = /tmp/.*
    
    
    # ----------------------------------------------------------------------

    Description

    include

    Add a directory to backup with a single line per directory.

    include = /etc

    exclude

    Add a exclude pattern. You can use multiple lines. If it is a lobbing ore a regex depends on the used backup tool.

    Hint:

    Finally do not spend time with defining exact exludes... better to backup all files of defined include rules and add some "trash" to the backup instead of missing files because of a wrong exclude pattern.

    exclude = /tmp/.*

    TODO: custom single dirs with includes and exludes

    TODO.