stacks/gdrive-backup/backup.sh

12 lines
231 B
Bash
Raw Normal View History

2021-12-17 09:38:07 -07:00
#! /bin/sh -e
for user in neale amy ginnie; do
dir=/mnt/ext/backups/$user
rclone \
--config=$dir/rclone.conf \
--bwlimit=2M \
--transfers=1 \
sync gdrive: $dir/gdrive
chown -R $(stat -c %u:%g $dir) $dir
done