Skip to content

Instantly share code, notes, and snippets.

View paulte's full-sized avatar

Paul T paulte

View GitHub Profile
@paulte
paulte / snapbackups
Last active November 14, 2018 21:39
lvm snapshot backups
#!/bin/env bash
#
# Restoring all snaps with PRESAMBA
# lvs -v | egrep PRESAMBA |awk '{print $1}' > /tmp/findme \
# && find /dev/centos | egrep -f /tmp/findme \
# | xargs -n 1 lvconvert --merge
# Delaying merge since origin is open.
# Merging of snapshot centos/PRESAMBA___centos___home___day___20181106230701___1541545621 will occur on next activation of centos/home.
# Delaying merge since origin is open.
# Merging of snapshot centos/PRESAMBA___centos___root___day___20181106222001___1541542801 will occur on next activation of centos/root.
#!/bin/bash
#
# Init script for pmacct network monitoring tool.
#
# chkconfig: 2345 13 86
# description: pmacct network monitoring tool.
#
# processname: pmacctd
# config: /etc/pmacct/pmacctd.conf
# pidfile: /var/run/pmacctd.pid