#!/usr/bin/env bash
set -Eeuo pipefail

cd "$(dirname "${BASH_SOURCE[0]}")"
../cron/annex.sh

cd ~/dev/
mr -s hd
rsync -avzP "$R:vps-borg/"                                ~/UTCLOUD/backups/vps-borg/
rsync -avzP "$R:desktop-borg/"                            ~/UTCLOUD/backups/desktop-borg/
rsync -avzP euandre.org:/home/user-data/backup/encrypted/ ~/UTCLOUD/backups/box-duplicity/
rsync -avzP ~/UTCLOUD/backups/box-duplicity/              "$R:box-duplicity/"
aws s3 sync ~/UTCLOUD/backups/ s3://euandreh-backups/
