| 1 | #### |
| 2 | # config for hdup |
| 3 | # |
| 4 | # see man 5 hdup.conf for more information |
| 5 | # '#' is comment, empty lines are ignored |
| 6 | #### |
| 7 | |
| 8 | [global] |
| 9 | # top backup directory where all the archives are put |
| 10 | archive dir = /tmp/storage/backup/ |
| 11 | |
| 12 | # what date to use (see hdup.conf) |
| 13 | date spec = iso |
| 14 | |
| 15 | # use this tar |
| 16 | tar = /bin/tar |
| 17 | |
| 18 | # if there is no daily try a weekly |
| 19 | # if there is no weekly try a monthly |
| 20 | always backup = on |
| 21 | |
| 22 | # skip the top backup directory |
| 23 | skip = yes |
| 24 | |
| 25 | # restore to / switch |
| 26 | force = no |
| 27 | |
| 28 | # overwrite an existing archive (dangerous!) |
| 29 | overwrite = yes |
| 30 | |
| 31 | # what options for ssh to use |
| 32 | proto = /usr/bin/ssh |
| 33 | proto option = -q -oProtocol=2 |
| 34 | |
| 35 | # chown to this user |
| 36 | user = operator |
| 37 | |
| 38 | # use this compression and level |
| 39 | compression = bzip |
| 40 | compression level = 9 |
| 41 | |
| 42 | # exclude these files and dirs |
| 43 | # dirs must be ended in '/' |
| 44 | exclude = lost+found/ ,proc/ , dev/, sys/ |
| 45 | |
| 46 | # if this file is found in a dir - leave it out |
| 47 | # of the backup |
| 48 | nobackup = .nobackup |
| 49 | |
| 50 | # my own host, backup this all important directory |
| 51 | [elektron] |
| 52 | # backup this dir |
| 53 | dir = /home/miekg/bin, /etc/hdup/hdup.conf, /etc/X11/xorg.conf |
| 54 | # redefine the nobackup keyword |
| 55 | nobackup = .nobackup |
| 56 | exclude = .svn/ |
| 57 | # run this script before the backup - if it fails the backup is |
| 58 | # aborted |
| 59 | prerun = echo %c %e %a %u %g |
| 60 | # do this afterwards |
| 61 | postrun = ./postrun-warn-user %s |
| 62 | |
| 63 | # my laptop will put some archive heres, put them in |
| 64 | # them in the correct place |
| 65 | [lappie] |
| 66 | dir = /var/www |
| 67 | # log to syslog |
| 68 | log = yes |
| 69 | # exlude this directory |
| 70 | exclude = /var/*/docs/ |
| 71 | # don't stay on the same filesystem |
| 72 | one filesystem = no |
| 73 | compression = gzip |
| 74 | #key = key2 |
| 75 | #algorithm = tripledes |
| 76 | allow remote = no |
| 77 | free = 20m |
| 78 | # where can we find the remote hdup exe's |
| 79 | remote hdup = /mnt/key/hdup16/src/hdup2 |
| 80 | remote hdup option = -c /mnt/key/hdup16/hdup2.conf |