#!/bin/bash

RCLONE_LOG=/var/log/rclone/rclone_beltex_luca_bck.log

rclone copy /srv/smb/beltex/Luca/_Prix_clients o365:/LUCA-Gestcom/_Prix_clients \
  --config /opt/rclone/rclone.conf \
  --ignore-size \
  --ignore-checksum \
  -vvv \
  --log-file "$RCLONE_LOG" 

rclone copy /srv/smb/beltex/Luca/_Documents_PDF o365:/LUCA-Gestcom/_Prix_clients \
  --config /opt/rclone/rclone.conf \
  --ignore-size \
  --ignore-checksum \
  -vvv \
  --log-file "$RCLONE_LOG" 

rclone copy /srv/smb/beltex/Luca/_Prix_clients_Archives o365:/LUCA-Gestcom/_Prix_clients \
  --config /opt/rclone/rclone.conf \
  --ignore-size \
  --ignore-checksum \
  -vvv \
  --log-file "$RCLONE_LOG" 
#rsync -rvhP /srv/smb/beltex/Luca/_Prix_clients /mnt/o365_beltex/LUCA-Gestcom/_Prix_clients
#rsync -rvhP /srv/smb/beltex/Luca/_Documents_PDF/ /mnt/o365_beltex/LUCA-Gestcom/_Documents_PDF/
#rsync -rvhP /srv/smb/beltex/Luca/_Prix_clients_Archives/ /mnt/o365_beltex/LUCA-Gestcom/_Prix_clients_Archives/