Skip to content

Instantly share code, notes, and snippets.

@clintkev251
Created July 28, 2022 00:01
Show Gist options
  • Save clintkev251/1558a1f570c9b3f3bbc61ef63e528792 to your computer and use it in GitHub Desktop.
Save clintkev251/1558a1f570c9b3f3bbc61ef63e528792 to your computer and use it in GitHub Desktop.
Simple backup user script for unraid + rclone
#!/bin/bash
echo "Starting backup of appdata"
rclone sync /mnt/user/Docker\ Backup backblaze:some-bucket/Docker\ Backup --transfers 1 --bwlimit 75M
echo "Starting backup of Shared Documentation"
rclone sync /mnt/user/Shared\ Documentation backblaze:some-bucket/Shared\ Documentation --bwlimit 75M
echo "Starting backup of Read Media"
rclone sync /mnt/user/Read_Media/Music backblaze:some-bucket/Read_Media/Music --bwlimit 75M
echo "Starting backup of Pictures"
rclone sync /mnt/user/Pictures backblaze:some-bucket/Pictures --bwlimit 75M
echo "Starting backup of Workdata"
rclone sync /mnt/user/Workdata backblaze:some-bucket/Workdata --bwlimit 75M
echo "Starting backup of boot"
rclone sync /mnt/user/usb-backup backblaze:some-bucket/usb-backup --bwlimit 75M
echo "Backup process complete"
curl https://status.example.com/api/push/example?status=up&msg=OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment