Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
*.pyc
*.pyo
__pycache__/
tmp/
preview/
#!/bin/bash
LOCAL_BACKUP=/mnt/backups/current
REMOTE_BACKUP=b2-ams-encrypted:frsol1-ynh1
SYNC_PARAMETERS="--fast-list --exclude-from /root/scripts/backup.exclude.txt"
echo "Clearing previous backup data"
rm -rf $LOCAL_BACKUP
echo "Starting backup"
yunohost backup create --name latest --methods copy -o $LOCAL_BACKUP
echo "Uploading backup"
rclone sync $SYNC_PARAMETERS $LOCAL_BACKUP $REMOTE_BACKUP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment