PMS backup using rclone by PGBlitz. | PlexGuide.com

PMS backup using rclone by PGBlitz.

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

luizfeliperc

Citizen
Original poster
Nov 15, 2018
3
0
Guys,
They are using PGBlitz without encryption and with 2 keys only. Prior to upgrading to the latest version, I would make my backups normally with the mount below, and work properly.
After performing the update to the last version, when my script will run, in the terminal it returns the following error:

2019/06/30 01:36:09 NOTICE: Config file "/home/holtzmann/.config/rclone/rclone.conf" not found - using defaults
2019/06/30 01:36:09 ERROR : ubuntu.2019-06-30.tar.bz2: Failed to copy: multpart copy: write failed: write /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: illegal seek 2019/06/30 01:36:09 ERROR : Attempt 1/3 failed with 2 errors and: multpart copy: write failed: write /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: illegal seek 2019/06/30 01:36:11 ERROR : ubuntu.2019-06-30.tar.bz2: Failed to copy: multpart copy: failed to open destination: open /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: bad file descriptor 2019/06/30 01:36:11 ERROR : Attempt 2/3 failed with 2 errors and: multpart copy: failed to open destination: open /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: bad file descriptor 2019/06/30 01:36:12 ERROR : ubuntu.2019-06-30.tar.bz2: Failed to copy: multpart copy: failed to open destination: open /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: bad file descriptor 2019/06/30 01:36:12 ERROR : Attempt 3/3 failed with 2 errors and: multpart copy: failed to open destination: open /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: bad file descriptor 2019/06/30 01:36:12 Failed to copy with 2 errors: last error was: multpart copy: failed to open destination: open /mnt/gdrive/Backup/ubuntu.2019-06-30.tar.bz2: bad file descriptor

The script I'm using and always worked on before upgrading is:

#!/bin/bash
sudo service plexmediaserver stop
sudo -s tar -cvjf /tmp/$(hostname).$(date +%F).tar.bz2 /var/lib/plexmediaserver
sudo service plexmediaserver start
sudo rclone copy /tmp/$(hostname).* /mnt/gdrive/Backup -v --checksum --drive-chunk-size=64M
sudo rm /tmp/$(hostname).*


The log that returns me in PGui is:
2019/06/30 01:16:31 ERROR : Backup/ubuntu.2019-06-30.tar.bz2: WriteFileHandle.Write: can't seek in file without --vfs-cache-mode >= writes

I thought it might be a bug because of the update and so I re-did the install from scratch and the problem persists.
To resolve, instead of using "rclone copy" I am required to use cp or rsync to transfer the file to the folder in question.
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending