Git Product home page Git Product logo

backup-scripts's Introduction

READ ME

TO DOWNLOAD FILES click the green ( CODE button ) to download the entire Script Repository as a single .ZIP file.

Sample scripts are not supported under any N-able support program or service.

The sample scripts are provided AS IS without warranty of any kind.

N-able expressly disclaims all implied warranties including, warranties of merchantability or of fitness for a particular purpose.

In no event shall N-able or any other party be liable for damages arising out of the use of or inability to use the sample scripts.

Please review, test and understand any scripts you download before implementing them in production!

Non Backup Specific

Get-Foldersizes.ps1

Script to inventory a file tree and report sizes of each branch.

N-able Backup - Standalone Editon

BulkGenerateRedeployCommands.ps1

Script to bulk generate a list of device credentials and redeployment commands for N-able Backup devices.

BulkSetGUIPassword.ps1

Script to bulk set/wipe a GUI Password that is useful forlimiting local and remote access to the Backup Manager client.

CleanupArchive.ps1

Script to clean all archive sessions older than X months. 
Optionally, check for existing Archive rules and/or create new Archive rules if no active archive rules are found.

CustomBackupThrottle.ps1

Script to set backup throttling times and values for individual days of the week   

DeployBackupManager.ps1

Universal deployment script for N-able Backup
Supports Automatic Deployment, Documents Deployment, Manual Deployment, Uninstall, Upgrade, Redeploy with Passphrase,
Redeploy with Private Key, Store Credentials, Reinstall & Reuse Stored Credentials.

ExcludeUSB.ps1

Script to exclude USB attached disks from backup.
Identify disks attached via USB bus type and exclude those device volumes using backup filter or the FilesNotToBackup registry key.

ForceLogout.ps1

Background script to force a custom inactivity logout period for the N-able Backup.Management console
Can be modified to force logout of other supported SSO products like the TakeControl and the RMM web consoles

GetDeviceErrors.ps1

Script to pull recent Device Errors and output to the console or update a Custom Column in the Management Console

GetDeviceInstallations.ps1

Script to Enumerate Device Installations.
Incudes all Historic installation instances of a Device, including Backup, Restore Only, Bare-Metal Recovery, Recovery Console and Recovery Testing instances
    Useful for auditing the last activity date for a specific Installation Id.

GetDeviceStatistics.ps1

Script to Enumerate Device Statistics.
Predefined to Include Multiple Columns from the Management Console, can be expanded to include custom columns.
    Useful for automating an export of data for billing or reporting.

GetM365DeviceStatistics.ps1

Script to Enumerate Microsoft 365 Device Statistics.
Predefined to Include Mail, OnDrive and Sharepoint Statistics and Protected Users.
    Useful for automating an export of data for billing or reporting.

GetSessionFiles.ps1

Script to Enumerate Files from the most recent Backup Sessions.
Incudes x largest transfered files, Hyper-V Files and Hyper-V Files incorectly included in File System Backups 
    Useful for Auding selections and ensuring that data is not double selected.

LSVSyncCheckFinal.ps1

Script to check the current Status and Sync percentage of the LocalSpeedVault and Cloud Storage.

SetBackupLogging.ps1

Script to set the logging level of the local Backup Manager client.

SetDeviceAlias.ps1

Script to set a value for the Device Alias column in the N-able Backup Management Console.
This script is for Automatic Deployed, Passphrase enabled devices.
Note, Using this script with a Private Key Encryption device will convert it to Passphrase Encryption.

SetDeviceProduct.ps1

Script to bulk assign a Product to multiple devices.
Useful for bulk assignment of a Product to devices without modifying their current parent partner location.

SetDeviceProfile.ps1

Script to bulk assign a Profile to multiple devices.
Useful for bulk removal, assignment or reassignment of a Profile to devices outside of the Management Console

SW MSP_MSPBenhancedMonitoringDeploymentConfiguration_01jul2020jr1.pdf

MSPB_CFG_CHECK_v1.amp

MSPB_CLOUD_CHECK_v1.amp

MSPB_LSV_CHECK_v1.amp

3 AMP files and PDF documentation to enhance monitoring of N-able Backup (Ncentral Integrated or Standalone Editions).

N-able Backup - RMM auto deploy setup.pdf

N-able Backup Deploy.amp

1 AMP file and PDF documentation to enable RMM deployment of N-able Backup (Standalone Edition)

N-able Backup Redeploy.amp

AMP file to redeploy N-able Backup (Ncentral Integrated or Standalone Editions) 
using device credentials and passphase 

N-able Backup Store Credentials.amp

N-able Backup Reuse Stored Credentials.amp

2 AMP files for use with N-able Backup (Ncentral Integrated Edition or Standalone Edition, when deployed via Ncentral or RMM).
Store Credentials will store your local Backup Manager credentials 
Reuse Stored Credentials will redeploy N-able Backup using stored credentials if the Backup Manager gets uninstalled. 

N-able Backup Upgrade.amp

AMP file to force upgrade of the Backup Manager to the latest downloadable version of N-able Backup (Ncentral Integrated Edition or Standalone Edition).
TLS 1.2 Compatible

N-able Backup Convert To PassPhrase.amp

AMP file to convert Backup Manager devices with Private Key Encryption to PassPhrase Encryption (Standalone Edition Managed by Ncentral or RMM)

N-able Backup - Ncentral Integrated Editon

CleanupArchive.ps1

Script to clean all archive sessions older than X months. 
Optionally, check for existing Archive rules and/or create new Archive rules if no active archive rules are found.

SW MSP_MSPBenhancedMonitoringDeploymentConfiguration_01jul2020jr1.pdf

MSPB_CFG_CHECK_v1.amp

MSPB_CLOUD_CHECK_v1.amp

MSPB_LSV_CHECK_v1.amp

3 AMP files and PDF documentation to enhance monitoring of N-able Backup (Ncentral Integrated or Standalone Editions).

N-able Backup Migration Prep.amp

N-able Backup Migration Cleanup.amp

2 AMP files for use when working with N-able on an approved migration from Ncentral Integrated Backup to the Standalone Edition.
Migration Prep will store your local Backup Manager credentials and block Ncentral from being able to uninstall the Backup Manager. 
Migration Cleanup will revert changes made to block Ncentral from being able to uninstall the Backup Manager. 

N-able Backup Store Credentials.amp

N-able Backup Reuse Stored Credentials.amp

2 AMP files for use with N-able Backup (Ncentral Integrated Edition or Standalone Edition, when deployed via Ncentral or RMM).
Store Credentials will store your local Backup Manager credentials.
Reuse Stored Credentials will redeploy N-able Backup using stored credentials if the Backup Manager gets uninstalled. 

N-able Backup Upgrade.amp

AMP file to force upgrade of the Backup Manager to the latest download version of N-able Backup (Ncentral Integrated Edition or Standalone Edition).

N-able Backup - RMM Integrated Editon

CleanupArchive.ps1

Script to clean all archive sessions older than X months. 
Optionally, check for existing Archive rules and/or create new Archive rules if no active archive rules are found.

CustomBackupThrottle.ps1

Script to set backup throttling times and values for individual days of the week   

ExcludeUSB.ps1

Script to exclude USB attached disks from backup.
Identify disks attached via USB bus type and exclude those device volumes using backup filter or the FilesNotToBackup registry key.

LSVSyncCheckFinal.ps1

Script to check the current Status and Sync percentage of the LocalSpeedVault and Cloud Storage.

SetBackupLogging.ps1

Script to set the logging level of the local Backup Manager client.

backup-scripts's People

Contributors

backupnerd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

backup-scripts's Issues

Script Request

Use the issues section of GitHub to add new script requests for SolarWinds Backup

BulkSetArchiveSchedule.v04.ps1 Returns Inconsistent Visa

Howdy friends!

I was trying to use the BulkSetArchiveSchedule.v04.ps1 to get & set archiving. It doesn't appear to pull any devices. Looks like, perhaps, the Visa is getting rejected.

I added "write-output $data" and "write-output $webrequest" to the Send-GetDevices function and ran ".\BulkSetArchiveSchedule.v04.ps1 -allpartners -alldevices -clearcredentials":

  Bulk Set Archive Schedule

Get-Command : File G:\My Drive\GitHub\Backup-Scripts\Retention\BulkSetArchiveSchedule.v04.ps1 cannot be loaded because
you opted not to run this software now.
At G:\My Drive\GitHub\Backup-Scripts\Retention\BulkSetArchiveSchedule.v04.ps1:64 char:11
+ $Syntax = Get-Command $PSCommandPath -Syntax ; Write-Output "  Script ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [Get-Command], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.PowerShell.Commands.GetCommandCommand
  Script Parameter Syntax:

  Current Parameters:
  -AllPartners     = True
  -AllDevices      = True
  -Add             = False
  -Name            = EOM Archive
  -Time            = 00:00
  -Months          = all
  -Monthdays       = last
  -Remove          = False
  AddArchiveSchedule
  ---------
  Backup API Credential File Cleared
  ---------
  Getting Backup API Credentials
  ---------
  Backup API Credential File Not Present
  ---------
  Setting Backup API Credentials
  ---------
  Backup API Credential Path Present
  ---------
  Enter Exact, Case Sensitive Partner Name for SolarWinds Backup.Management API i.e. 'Acme, Inc ([email protected])'
  Enter Login Partner Name: Our_Partner_Name
  ---------
  Getting Backup API Credentials
  ---------
  Backup API Credential File Present
  ---------
  Stored Backup API Partner  = Our_Partner_Name
  Stored Backup API User     = My_API_Email
  Stored Backup API Password = Encrypted
  ---------

  ---------
  Our_Partner_Name - Our_Partner_ID - Our_UID
  ---------
  ---------
  All Partners Selected

Name                           Value
----                           -----
visa                           The visa appears here & looks like the visa we got back from the Send-APICredentialsCookie function...
params                         {query}
id                             2
jsonrpc                        2.0
method                         EnumerateAccountStatistics

Content           : {123, 34, 101, 114...}
StatusCode        : 200
StatusDescription :
RawContentStream  : Microsoft.PowerShell.Commands.WebResponseContentMemoryStream
RawContentLength  : 113
RawContent        : HTTP/1.1 200
                    Connection: keep-alive
                    X-Trace: F0681CBA54489CF65D1C229DDF61C97573129D9B
                    Access-Control-Allow-Origin: https://backup.management
                    Access-Control-Allow-Credentials: true
                    Access-Control-Allow-Methods: POST, OPTIONS, GET
                    Access-Control-Allow-Headers: Pragma,Expires,Cache-Control,Content-Type,Authorization
                    Access-Control-Expose-Headers: X-ErrorCode
                    Strict-Transport-Security: max-age=31536000; includeSubDomains
                    Content-Length: 113
                    Content-Type: application/json-rpc
                    Date: Wed, 01 May 2024 16:26:15 GMT

                    {"error":{"code":-32603,"data":1701,"message":"Visa is
                    inconsistent/corrupted."},"id":"jsonrpc","jsonrpc":"2.0"}

BaseResponse      : System.Net.HttpWebResponse
Headers           : {[Connection, keep-alive], [X-Trace, F0681CBA54489CF65D1C229DDF61C97573129D9B],
                    [Access-Control-Allow-Origin, https://backup.management], [Access-Control-Allow-Credentials,
                    true]...}

  ---------
  0 Devices Selected
  ---------
  No Devices Selected

I'm running Windows 11 Pro 23h2. PS version 5.1.22621.2506.

For what it's worth, I can run .\Settings\CoveDataProtection.GetUserViews.v24.02.29.ps1 and it pulls & exports custom user views just fine. So I believe the creds I'm using are valid. The user account I'm using for testing is a SuperUser and has API access enabled.

I've tried to compare the authentication of GetUserViews and BulkSetArchiveSchedule, but have yet been unable to ID a difference that would cause this. Any ideas on what we can try to be able to pull all devices?

Thanks for all you do!!
jake

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.