Now everything works as it should, however my issue is that when I upload a file via this new crypt2 it does not place the file in folders I have already created via the cached crypt. Is there a way I can do this? I only ask because via the first remote I have folders created called Movies/TV/Music and I have Sonarr and Radarr pointing to these.
if pidof -o %PPID -x "gdrive-upload-movies.sh"; then
echo "Script is already running. Terminating."
exit 1
fi
LOGFILE="/home/td001/logs/gdrive-upload-movies.log"
FROM="/home/td001/TorrentShare/RadarrDownloads"
#TO="/home/td001/mnt/gdrive/Movies/"
TO="crypt2:/Movies"
CONFIG="/home/td001/.config/rclone/rclone.conf"
echo "$(date "+%d.%m.%Y %T") RCLONE UPLOAD STARTED" | tee -a $LOGFILE
# MOVE FILES TO GOOGLE DRIVE
rclone move "$FROM" "$TO" --config=$CONFIG --log-file=$LOGFILE -vv --transfers=10 --checkers=3 --no-traverse --tpslimit 3 --drive-chunk-size 32M --ignore-existing --exclude *partial~ --delete-after
echo "$(date +"%D %T") RCLONE UPLOAD FINISHED" | tee -a $LOGFILE
The command works, it's just not saving to the correct location on Google Drive. It will create it's own folder instead of inserting into the Movies folder that already existed when I created it through the cache mount on my system (I included the location it's the TO that's commented out).
2019/06/06 23:46:38 DEBUG : Using config file from "/home/td001/.config/rclone/rclone.conf"
2019/06/06 23:46:38 INFO : Starting HTTP transaction limiter: max 3 transactions/s with burst 1
2019/06/06 23:46:40 INFO : Encrypted drive 'crypt2:/Movies': Waiting for checks to finish
2019/06/06 23:46:40 INFO : Encrypted drive 'crypt2:/Movies': Waiting for transfers to finish
2019/06/06 23:46:40 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 0
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 2.3s
2019/06/06 23:46:40 DEBUG : 4 go routines active
2019/06/06 23:46:40 DEBUG : rclone: Version "v1.47.0" finishing with parameters ["rclone" "move" "--config=/home/td001/.config/rclone/rclone.conf" "-vv" "/home/td001/TorrentShare/RadarrDownloads" "crypt2:/Movies" "--log-file=/home/td001/TorrentShare/testtransfer.log" "--transfers=10" "--checkers=3" "--no-traverse" "--tpslimit" "3" "--drive-chunk-size" "32M" "--ignore-existing" "--exclude" "*partial~" "--delete-after" "--dry-run"]
Run successfully - however, still created it's own folder within 'crypt' next to the other folders: Movies, TV, Music instead of being placed in the Movies folder. I'm sure I'm missing some tiny silly config somewhere though I appreciate your help @Animosity022 you're like legendary around here
~$ rclone lsd crypt2: -vv
2019/06/07 00:14:47 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone" "lsd" "crypt2:" "-vv"]
2019/06/07 00:14:47 DEBUG : Using config file from "/home/td001/.config/rclone/rclone.conf"
2019/06/07 00:14:48 DEBUG : h5i2jsjh5hqq9c2jpa4q6ip9l0: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2019/06/07 00:14:48 DEBUG : br4l7oppte4ln8ma74vj43u730: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2019/06/07 00:14:48 DEBUG : gu429mg4onhpaq5g5jm100419o: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
-1 2019-06-07 00:14:39 -1 Movies
2019/06/07 00:14:48 DEBUG : 4 go routines active
2019/06/07 00:14:48 DEBUG : rclone: Version "v1.47.0" finishing with parameters ["rclone" "lsd" "crypt2:" "-vv"]
I believe that would create the error you are seeing. You'd want to copy the passwords from the first section and use the same in the second crypt.
I recreated it myself with the same password and a different salt.
[felix@gemini rclone]$ rclone lsd test: -vv
2019/06/07 00:30:09 DEBUG : rclone: Version "v1.47.0" starting with parameters ["rclone" "lsd" "test:" "-vv"]
2019/06/07 00:30:09 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2019/06/07 00:30:09 DEBUG : rpju5hpe3gjgr6j3jt5jtibqvc: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2019/06/07 00:30:09 DEBUG : 95tj3q4gj5ban13ppu0kisguco: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2019/06/07 00:30:09 DEBUG : tnvepu36qiohcun8v84ddhsam0: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2019/06/07 00:30:09 DEBUG : smu5ej34ujbdoip1cm3mlk92q4: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2019/06/07 00:30:09 DEBUG : 4 go routines active
2019/06/07 00:30:09 DEBUG : rclone: Version "v1.47.0" finishing with parameters ["rclone" "lsd" "test:" "-vv"]
[felix@gemini rclone]$ vi rclone.conf
You'd have to clean up the directories/files loaded with the different key or that'll toss errors. You'd not see those in your mount as it kind of hides it. The rclone ls command with -vv would show you.