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

Rick7C2

Blitz 3rd Class
Original poster
14
6
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
5,305
1,805
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.
 
  • Like
Reactions: Rick7C2

Admin9705

Administrator
Project Manager
5,305
1,805
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
5,305
1,805
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.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads