Skip to content

Instantly share code, notes, and snippets.

@athompso
athompso / TIME
Created December 19, 2019 08:22
debug output of CRAN rsync run
mirror@muug:~/logs/cran$ cat /ARRAY/mirror/cran/TIME
1575799561
@athompso
athompso / bgpd.conf
Last active May 9, 2019 15:53
bgpmirror.merlin.mb.ca OpenBSD 6.5 bgpd.conf & dmesg
route-collector yes
socket "/var/www/run/bgpd.rsock" restricted # for bgplg
# settings
nexthop qualify via default
fib-update no
dump table-v2 "/var/www/htdocs/bgplg/mrt/rib-dump.mrt" 3600
dump updates in "/var/www/htdocs/bgplg/mrt/updates-in-%H%M" 300
dump all in "/var/www/htdocs/bgplg/mrt/all-in-%H%M" 300
@athompso
athompso / prune_old_vols.sh
Last active October 23, 2015 15:23 — forked from starkers/prune_old_vols.sh
prune delete and remove old bacula volumes
#!/bin/sh
#set -x
# Prune and volumes older than 2 months:
PAST=$(date --date='-2 months 0 day ago' +%Y-%m-%d)
#EG a hard coded date
#PAST="2012-11-29"
#PAST="2013-11-29"