Giter Site home page Giter Site logo

Comments (8)

alekdavis avatar alekdavis commented on June 27, 2024 1

By default, if the value of a property in the config file is null/empty string/false/0 (i. e. if it is evaluated to $false by PowerShell, sure as if (!$value)), the script will not use if (it will assume that the value is not specified), so the default value or the value specified via command line will be used. But if you set the hasValue property to true, the script will use it even if it evaluated to $false. Makes sense?

from plexbackup.

alekdavis avatar alekdavis commented on June 27, 2024

No, this means: do not use the staging folder and compress directly in the backup directory. To compress using the staging TEMP folder, remove the hasVaue attribute.

from plexbackup.

alekdavis avatar alekdavis commented on June 27, 2024

Does this make sense?

from plexbackup.

Zixim avatar Zixim commented on June 27, 2024

I don't want to have a temp file during the compression.
So the default setting in the configuration file is what i want :

Compress directly to BackupRootDir :

"TempZipFileDir": {
        "hasValue": true,
        "value": null
},

For posterity :
In case some one wants to use a temporary compression file in Windows temp, what would the config look like ?
What about if the staging needs to happen in D:\some_temp_folder\ ?

from plexbackup.

alekdavis avatar alekdavis commented on June 27, 2024

If you want to stage compression to the temp directory, use:

'TempZipFileDir' : { 'value' : null }

If staging needs to happen in some temp folder, use:

'TempZipFileDir' : { 'value' : 'D:\\some_temp_folder\\'}

from plexbackup.

Zixim avatar Zixim commented on June 27, 2024

erm...back to confused...

use windows temp : 'TempZipFileDir' : { 'value' : null }
use specific folder : 'TempZipFileDir' : { 'value' : 'D:\\some_temp_folder\\'}
don't use any staging : ???

from plexbackup.

alekdavis avatar alekdavis commented on June 27, 2024

You just posted the example of not using staging above and it is absolutely correct:

"TempZipFileDir": {
        "hasValue": true,
        "value": null
}

from plexbackup.

Zixim avatar Zixim commented on June 27, 2024

whats the difference between
'TempZipFileDir' : { 'value' : null }
and

"TempZipFileDir": {
        "hasValue": true,
        "value": null
}

from plexbackup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.