unraid-plex-script icon indicating copy to clipboard operation
unraid-plex-script copied to clipboard

Getting errors on run.

Open Sonny-Crockett opened this issue 2 years ago • 1 comments
trafficstars

This is almost an identical configuration to a currently working version of this script on unRAID. Any ideas?

CONFIG

source="/mnt/disks/nvme_drive/plex nvme appdata/" # path to your plex appdata location destination="/mnt/user/backups/plex appdata backup/" # path to your backup folder

SCRIPT LOG

Script location: /tmp/user.scripts/tmpScripts/plex-nvme-appdata-backup/script Note that closing this window will abort the execution of this script /tmp/user.scripts/tmpScripts/plex-nvme-appdata-backup/script: line 36: cd: $'/mnt/disks/nvme_drive/plex\n/nvme\n/appdata/Library/Application Support/Plex Media Server': No such file or directory

Creating essential backup... please wait tar: Plug-in Support/Databases: Cannot stat: No such file or directory tar: Plug-in Support/Preferences: Cannot stat: No such file or directory tar: Preferences.xml: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errors

Last full backup created 0 ago... skipping

Removing Essential backups older than 7 days... please wait

find: '/mnt/user/backups/plex': No such file or directory find: 'appdata': No such file or directory find: 'backup//Essential*': No such file or directory du: cannot access '/mnt/user/backups/plex': No such filedu: cannot access '/backup//Essential/05-21-2023/': No such file or directory Essential backup:

Total time for backup: 2 seconds

All Done!

/tmp/user.scripts/tmpScripts/plex-nvme-appdata-backup/script: line 127: [: too many arguments /tmp/user.scripts/tmpScripts/plex-nvme-appdata-backup/script: line 130: [: too many arguments

Sonny-Crockett avatar May 21 '23 14:05 Sonny-Crockett

You can see the error here cd: $'/mnt/disks/nvme_drive/plex\n/nvme\n/appdata

linux is funky with paths that have spaces in them, it does not operate the same as Windows, you'd be better off to not use spaces.

You can try this

source="/mnt/disks/nvme_drive/plex\ nvme\ appdata/" # path to your plex appdata location destination="/mnt/user/backups/plex\ appdata\ backup/" # path to your backup folder

rcodehub avatar May 28 '23 12:05 rcodehub