unraid-plex-script
unraid-plex-script copied to clipboard
Getting errors on run.
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
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