Discussion blitz not uploading if using second hd again...

Rick7C2

PG Specialist
Mar 15, 2018
13
3
8
Reactions
3 0 0
#1
PG Version
8.0.15
Server Type
Remote - Dedicated Server
blitz will now only upload files located in /mnt/move even if you have a second hd. Using 8.0.15


touch /mnt/move/test0 Is uploaded to gdrive.

while

touch $(cat /var/plexguide/server.hd.path)/move/test1 Is not

Think you are missing the hdd var in the pgblitz.sh

Example...
Line 50
Bash:
        "/mnt/move/" "/$dlpath/pgblitz/upload"
Should be...

Bash:
        "$dlpath/move/" "$dlpath/pgblitz/upload"
Same for the empty dir clean up.

Example...
Line 69
Bash:
find "/mnt/move/" -mindepth 1 -mmin +30 -type d -empty -delete
Should be...

Bash:
find "$dlpath/move/" -mindepth 1 -mmin +30 -type d -empty -delete
Also notice I removed the first "/" that is because $(cat /var/plexguide/server.hd.path) already returns the first "/"

Or am I mistaken?

Also there might be other instances where "/mnt/move" should be changed to "$dlpath/move/" Might be worth looking into.

@Admin9705
 
Last edited:

Admin9705

Administrator
Project Manager
Jan 17, 2018
4,685
1,989
113
Reactions
1,989 0 0
#2
testing now, i removed the / ... shouldn't be there and changed the /mnt. Good catch, i kept dropping files in /mnt/move and saw upload, forgetting that it's $dlpath. doing some checks and update should be out in a few minutes if working right.
 

Admin9705

Administrator
Project Manager
Jan 17, 2018
4,685
1,989
113
Reactions
1,989 0 0
#3
blitz will now only upload files located in /mnt/move even if you have a second hd. Using 8.0.15


touch /mnt/move/test0 Is uploaded to gdrive Is uploaded to gdrive

while

touch $(cat /var/plexguide/server.hd.path)/move/test1 Is not

Think you are missing the hdd var in the pgblitz.sh

Example...
Line 50
Bash:
        "/mnt/move/" "/$dlpath/pgblitz/upload"
Should be...

Bash:
        "$dlpath/move/" "$dlpath/pgblitz/upload"
Same for the empty dir clean up.

Example...
Line 69
Bash:
find "/mnt/move/" -mindepth 1 -mmin +30 -type d -empty -delete
Should be...

Bash:
find "$dlpath/move/" -mindepth 1 -mmin +30 -type d -empty -delete
Also notice I removed the first "/" that is because $(cat /var/plexguide/server.hd.path) already returns the first "/"

Or am I mistaken?

Also there might be other instances where "/mnt/move" should be changed to "$dlpath/move/" Might be worth looking into.

@Admin9705
try 8.0.16, good catch!
 

Admin9705

Administrator
Project Manager
Jan 17, 2018
4,685
1,989
113
Reactions
1,989 0 0
#5
Thanks! looking good so far. Thanks for the quick response!
I wouldn't have caught it in forever. I was wondering why the encrypted hd was uploaded. I don't use encrypted and hd, but setup a test box... so better feedback from someone who uses it. Let me know if you have anything else.
 

PG Developer Donations

 

Forum statistics

Threads
2,961
Messages
18,628
Members
5,924
Latest member
chrisi21