Skip to content

Instantly share code, notes, and snippets.

View Barry-Fisher's full-sized avatar

Barry Fisher Barry-Fisher

View GitHub Profile
@Barry-Fisher
Barry-Fisher / digital-ocean-backup-prune.sh
Last active January 7, 2019 15:19
digital-ocean-backup-prune.sh
#!/bin/bash
# Copyright: 2017 Barry Fisher
# LICENSE: MIT - https://opensource.org/licenses/MIT
# BACKGROUND:
# Digital Ocean Spaces doesn't currently support automatic
# deletion of objects/directories after a specified time period which
# makes it difficult to use Spaces for backup purposes.
# This script can be run as a cron task (or similar) to inspect a