#TrueNAS
sleep 5
rsync -avxzzhSP –stats –delete –rsh=ssh /mnt/owncloud-data root@truenas.domain.tld:/mnt/tank0/backup/
sleep 5
ssh root@truenas.domain.tld chown -R user:user /mnt/tank0/backup/
#Linux
sleep 5
rsync -avxzhSP –stats –delete –rsh=ssh /mnt/owncloud-data root@linux-server.domain.tld:/mnt/backup/
#Google Drive
# Prereqs see https://www.more-it.de/mount-google-drive-locally-to-a-linux-machine/
sleep 5
rsync -avxzh –progress –stats –inplace –delete /mnt/owncloud-data/ /mnt/google-drive/