Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with backup #70

Closed
david-corkill opened this issue Dec 18, 2022 · 5 comments
Closed

issue with backup #70

david-corkill opened this issue Dec 18, 2022 · 5 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@david-corkill
Copy link

When I run the script, it creates a file called $zipFilePath.zip in the folder where by backup script is located. I also notice that the folder '1' in the destination is empty. I am assuming this file should be in that path

if I open $zipFilePath.zip, it contains the following

.LocalAdminToken
plexmediaserver.pid
Preferences.xml
Setup Plex.html

If I create a logfile, it gives this logging info for that step

Saving version:
1.30.0.6486
to:
\NAS\Backup\Plex\20221219075615\Version.txt
Backing up Plex app data files in the root folder.
No files found in 'C:\Users\Administrator\AppData\Local\Plex Media Server' (it's okay).

@david-corkill
Copy link
Author

Just to add a note, it appears to be if I use parameters in the bat file rather than the json. The json works correctly, never mind me

@alekdavis
Copy link
Owner

So, are you good or do you need help?

@david-corkill
Copy link
Author

I am good. If it is meant to work with parameters in place of the config file, it might have a problem, but config file worked as expected.

@alekdavis
Copy link
Owner

alekdavis commented Dec 19, 2022

It works with parameters and config file (including using both in the same call, in which case command line parameters tace precedence). I'm just not sure what you did originally. Like where is the batch file coming from? There should be no batch files. You can use config file in the json or ini format, but I don't know how you pass parameters via a batch file.

@david-corkill
Copy link
Author

david-corkill commented Dec 21, 2022

I worked out what caused it, it only happens when Type is not configured as a parameter or edited in the .json.

If run using the standard .json, or without this type parameter configured when executing, it creates a zip called $zipFilePath.zip in the directory where the script is run instead of putting it in the 1 directory in the backup path.

it is only the 1 directory (files) that acts weird, the other folders are correctly zipped (by default)

@alekdavis alekdavis self-assigned this Mar 2, 2023
@alekdavis alekdavis added the help wanted Extra attention is needed label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants