#!/usr/bin/env sh

################################### license ##################################
# job_backup_to_USB_minimal.sh calls rclone_jobber to perform a backup to USB.
# Written in 2018 by Wolfram Volpi, contact at https://github.com/wolfv6/rclone_jobber/issues.
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide.
# This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.
# rclone_jobber is not affiliated with rclone.
##############################################################################

#this script uses these user-defined environment variables: rclone_jobber, usb
source="$HOME/test_rclone_data"
dest="$usb/test_rclone_backup"
options="--dry-run"

$rclone_jobber/rclone_jobber.sh "$source" "$dest" "$move_old_files_to" "$options" "$(basename $0)"

#display test directories (display for tutorial only, don't do this in production)
tree -a $source
tree -a $dest
