Comments (15)
Did you follow the instructions on the Getting Started page?
from plexbackup.
Did you follow the instructions on the Getting Started page?
Yes,
- Saved files in the same location
- Rename the file name and removed SAMPLE
- Created a powershell shortcut on desktop and in advanced i checked run as admin
- CD the file directory
- Executed .\PlexBackup.ps1 and i got the error shared above
I do not what to do with update config File setting. It is not clear to me
from plexbackup.
Try adding this line inside of the catch
block on line 3216:
LogException $_ $false $false
So the code block will look like this:
# Load config settings from a config file (if any).
try {
Import-ConfigFile -ConfigFilePath $ConfigFile -DefaultParameters $PSBoundParameters
}
catch {
LogException $_ $false $false
LogWarning "Cannot initialize run-time configuration settings." $false
$mutex = StopSingleInstance $mutex
exit $EXITCODE_ERROR_CONFIG
}
from plexbackup.
Sorry, messed up the code block (updated now). Basically, I want to see the root cause error message. I suspect, there is something wrong with the config file or (less likely) the module that is supposed to process the config file. Please post the error message after you run the script.
from plexbackup.
alekdavis, above you say "updated now" but looks like same file with date time stamp the same in the zip file. What am I missing?
thanks for all you have done
from plexbackup.
I updated my comment (originally added the new line in the wrong place), not the script itself.
from plexbackup.
Sorry, messed up the code block (updated now). Basically, I want to see the root cause error message. I suspect, there is something wrong with the config file or (less likely) the module that is supposed to process the config file. Please post the error message after you run the script.
apologies for the delay i was having an emergency, here you go..
PS C:\Users\MAIN\OneDrive\AppsBackups\Plex> .\PlexBackup.ps1
PlexBackup v1.7.2 (c) 2020 Alek Davis
Script started at:
07/29/2020 22:19:13
LogException : Invalid JSON primitive: .
At C:\Users\MAIN\OneDrive\AppsBackups\Plex\PlexBackup.ps1:3216 char:5
-
LogException $_ $false $false
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,LogException
Cannot initialize run-time configuration settings.
from plexbackup.
Yeah, looks like your configuration file is messed up. Can you post it here?
from plexbackup.
Yeah, looks like your configuration file is messed up. Can you post it here?
I just saved the files from https://github.com/alekdavis/PlexBackup/blob/master/PlexBackup.ps1
here is the file
PlexBackup.zip
from plexbackup.
Not this file. I am asking for PlexBackup.ps1.json
from plexbackup.
Not this file. I am asking for PlexBackup.ps1.json
from plexbackup.
It looks like you save the web page layout instead of the configuration file. Just download the PlexBackup.ps1.SAMPLE.json
(and make sure you download the actual file, not the web page), rename it (remove the .SAMPLE
part), put the proper value in the backup directory setting (make sure you use double back slashes for each back slash in the path, so in your case, the value would be C:\\Users\\MAIN\\OneDrive\\AppsBackups\\Plex
) and try it again. Basically, follow the instructions in the Getting Started section.
from plexbackup.
It looks like you save the web page layout instead of the configuration file. Just download the
PlexBackup.ps1.SAMPLE.json
(and make sure you download the actual file, not the web page), rename it (remove the.SAMPLE
part), put the proper value in the backup directory setting (make sure you use double back slashes for each back slash in the path, so in your case, the value would beC:\\Users\\MAIN\\OneDrive\\AppsBackups\\Plex
) and try it again. Basically, follow the instructions in the Getting Started section.
thanks for the help, i was doing everything wrong :(
ok, i managed to correct it and i can see the progress is running fine except there is an error with registry, i see it says it might be a non-critical error, so should i worry?
C:\Users\MAIN\OneDrive\AppsBackups\Plex\20200731035027\3\Plex2.reg
LogException : ERROR: The system was unable to find the specified registry key or value.
At C:\Users\MAIN\OneDrive\AppsBackups\Plex\PlexBackup.ps1:3118 char:13
-
LogException $_
-
~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,LogException
Restoring special subfolders.
Copying folder:
C:\Users\MAIN\OneDrive\AppsBackups\Plex\20200731035027\4\Plug-in Support\Data\com.plexapp.system\DataItems\Deactivated
to:
C:\Users\MAIN\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.system\DataItems\Deactivated
at:
2020/07/31 04:11:29.830
Completed at:
2020/07/31 04:11:29.850
Starting Plex service(s):
Plex Update Service
Starting Plex Media Server process:
C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
Script ended at:
2020/07/31 04:11:30.324
Script ran for (hr:min:sec.msec):
00:21:03.192
Script returned:
SUCCESS
Done.
PS C:\Users\MAIN\OneDrive\AppsBackups\Plex>
from plexbackup.
Yes, you can ignore it for now. Just make sure your backup files are of reasonable size. I will handle the missing registry key better later. Also check the Plex1.reg file to make sure it's backed up.
from plexbackup.
Fixed the registry issue in v2.0.0.
from plexbackup.
Related Issues (20)
- issue with backup HOT 5
- Cannot import run-time settings from default configuration file (if any). Invalid JSON primitive: Skip. HOT 1
- Validation error. Backup version does not match HOT 3
- Can't start Plex after backup HOT 6
- After backup completes getting an error when the script attempts to start Plex HOT 3
- Plex Media Server Not Restarting HOT 1
- Email Notification Not Working HOT 2
- Plex Backup Failing-Nothing Changed HOT 16
- question/enhancement HOT 4
- Only receiving the error "Error processing dependencies. You cannot call a method on a null-valued expression." HOT 6
- Fix typo in log message HOT 1
- Add support for PowerShell 7.
- RUNAS ERROR: Unable to run ... 87: The parameter is incorrect. HOT 2
- Plex Backup Fails Through Task Scheduler (Win 10 Pro) HOT 2
- 87: The parameter is incorrect HOT 13
- Create a workaround for the error 87: The parameter is incorrect HOT 1
- Restore didn
- Restore didn't work too well for me HOT 16
- Sub folders not being created by backup process HOT 5
- Add the option to exclude Cache folder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexbackup.