Skip to content

Instantly share code, notes, and snippets.

View BjarniRunar's full-sized avatar

Bjarni Rúnar Einarsson BjarniRunar

View GitHub Profile
@BjarniRunar
BjarniRunar / gist:bd34c1e2e8101f6ff237add5db43eb78
Last active April 20, 2018 21:11
Backup snapshots, using rsync. CLI user's Time Machine replacement.
#!/bin/bash
#
# Backup scriptlet. Public Domain. Made by Bjarni, https://bre.klaki.net/
#
# This will look in any device mounted on /media/$USER/, and if it has a directory
# named home-00000000 or data-00000000, it will use one of two rsync-based strategies
# to create a backup snapshot. To start using new media, just create one of those
# directories and run the script.
#
# I have two strategies because some of my backup disks are too small for my "Data"