What's new
PGBlitz.com

Register Now! Find useful tips, Interact /w Community Members and join the part the Best Community on the Internet!

PMS backup using rclone by PGBlitz.

luizfeliperc

Junior Member
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.
 
Assists Greatly with Development Costs

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


Top NZB NewsGroups!

Members - Up To a 58% Discount!

Development Donations

 

Online statistics

Members online
14
Guests online
103
Total visitors
117
Top