diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-10-24 19:50:58 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-10-24 19:50:58 +0300 |
commit | 6d94b7e009b9d35b704a3fc579e1bdbea9328798 (patch) | |
tree | 2510e2318092277587251ce5a0b990e5050901e0 /liw.cronish | |
parent | 1ca0bb42306176f8c33238056491ec9046ebe15c (diff) | |
download | liw-dot-files-6d94b7e009b9d35b704a3fc579e1bdbea9328798.tar.gz |
Add branchable.com log retrieval
Diffstat (limited to 'liw.cronish')
-rw-r--r-- | liw.cronish | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/liw.cronish b/liw.cronish index e8180ec..490d514 100644 --- a/liw.cronish +++ b/liw.cronish @@ -67,3 +67,17 @@ work-backups: debmirror: interval: 3600 command: /home/liw/bin/mirror-debian-e1 + +branchablelogs: + trigger-file: /home/liw/branchable-logs/timestamp + trigger-age: 86400 + command: | + cd /home/liw/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 |