summaryrefslogtreecommitdiff
path: root/liw.cronish
blob: 2a37d6ca4cb8ba1bc33b352102e2b7b4a15fb578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
offlineimap:
    interval: 60
    timeout: 120
    command: offlineimap -u quiet

wotsap:
    trigger-file: /home/liw/.wotsapdb
    trigger-age: 604800
    command: |
        if [ -e /home/liw/bin/update-wotsap ]
        then    
            /home/liw/bin/update-wotsap
        else
            touch /home/liw/.wotsapdb
        fi

ssb_backup:
  trigger-file: /home/liw/data/ssb/ssb2-home.timestamp
  trigger-age: 86400
  command: |
    rsync -a --delete ssb2:. /home/liw/data/ssb/ssb2-home/.
    touch /home/liw/data/ssb/ssb2-home.timestamp

#gpg_refresh:
#   trigger-file: /home/liw/.gnupg/refresh.stamp
#   trigger-age: 604800
#   command: |
#       gpg2 --refresh-keys
#       gpg2 --send-keys 44E17740B8611E9C
#       touch /home/liw/.gnupg/refresh.stamp

# branchablelogs:
#     trigger-file: /home/liw/data/branchable-logs/timestamp
#     trigger-age: 86400
#     command: |
#       cd /home/liw/data/branchable-logs
#       sites="liw-fi blog-liw-fi 256 bullyfactory docstory effi
#           fracking free-thursday gtdfh obnam-org soap yakking"
#       for site in $sites
#       do
#           ssh "b-$site@$site.branchable.com" logdump | \
#           xz > "$site-$(date +%Y-%m-%dT%H:%M:%S).log.xz"
#       done
#       touch timestamp

# update_vmdb2_git:
#     interval: 300
#     timeout: 60
#     command: /home/liw/bin/update-vmdb2-gits