I'm using google-drive-ocamlfuse to copy files to Google Drive. I'm using the following Bash Script to do it. It is very slow but I'm sure that's primarily because of the connection. The first run is copying 490 GB. I'm trying to get a good start on it so it will be done in a couple of weeks or less.
I tried using the parameters
rlvW. I saw those at:
https://github.com/astrada/google-dr...use/wiki/rsync. It seemed really slow so now I'm using
azvW.
Does anyone have any advice here or is
azvW good enough? I'm new to google-drive-ocamlfuse and I've been using the same rync over and over for my regular drive with
azuv.
Thanks!
Quote:
#! /bin/bash
drives=("wdgld6" "wdblk6" "wdred3" "wdblk1" "gdrive")
for i in "${drives[@]}"
do
if [ -d /run/media/user01/$i/backup/ ]; then
echo '--> STARTING '
echo '--> STARTING ' $i $i $i $i $i $i
echo '--> STARTING '
echo $(date)
# VERBOSE = -v
# rsync -azu --exclude 'do-not-sync' --delete
# rsync -azu --delete
folders=("Documents" "Downloads" "Music" "Pictures" "Templates" "Videos")
for f in "${folders[@]}"
do
if [ ! -d /run/media/user01/$i/backup/$f ]; then
mkdir /run/media/user01/$i/backup/$f
fi
echo '--> STARTING '
echo '--> STARTING ' $i $f $f $f $f $f
echo '--> STARTING '
if [ $i = "gdrive" ]; then
rsync -azvW --inplace --size-only --delete /run/media/user01/wdgld6/backup/$f/ /run/media/user01/gdrive/backup/$f/
else
rsync -azuv --exclude-from='/media/user01/Documents/linux/rsync-exclude.txt' --delete-excluded --delete /media/user01/$f/ /run/media/user01/$i/backup/$f/
fi
echo '--> FINISHED '
echo '--> FINISHED ' $i $f $f $f $f $f
echo '--> FINISHED '
done
fi
echo $(date)
echo '--> FINISHED '
echo '--> FINISHED ' $i $i $i $i $i $i
echo '--> FINISHED '
i=$(($i + 1))
done
|