admin-scripts/sync_to_protondrive

14 lines
303 B
Bash

#!/usr/bin/env bash
if ! kbackup --auto /home/jas/documents/default.kbp; then
logger -t backup_home -s "Error running kbackup"
exit 1
fi
if ! rclone sync --transfers 8 /home/jas/sync_to_protondrive/ protondrive: ; then
logger -t backup_home -s "Error running rclone"
exit 1
fi
exit 0