#!/bin/sh

# Paths
UPLOAD_LOCATION="/srv/docker/drive/files"
CONNECTION_URI="ssh://ltiey8ft@ltiey8ft.repo.borgbase.com/./repo"


### Append to remote Borg repository
/usr/bin/borg create  "$CONNECTION_URI::drive-{now}" "$UPLOAD_LOCATION"
/usr/bin/borg prune --keep-weekly=4 --keep-monthly=3 "$CONNECTION_URI"
/usr/bin/borg compact "$CONNECTION_URI"
