Skip to content

Instantly share code, notes, and snippets.

View davidscholberg's full-sized avatar

David Scholberg davidscholberg

  • Gainesville, Florida, US
View GitHub Profile
#!/bin/sh
# Pull incremental backups from remote host
TIMESTAMP=$(date +%F--%H-%M-%S)
SRC_LOC="$1"
SRC_HOST="$(echo "$SRC_LOC" | cut -f 2 -d @)"
SRC_DIR="/*"
DEST_BASE="/srv/mnt/backups/incremental/$SRC_HOST"
#!/usr/bin/python
# Copyright 2016 David Scholberg <recombinant.vector@gmail.com>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,