Skip to content

Instantly share code, notes, and snippets.

@instantdreams
instantdreams / npm_restore.sh
Last active October 23, 2022 02:51
Restore NPM configuration from previously created backup
#!/bin/bash
# Script location : /srv/bin/npm_restore.sh
# restore_source : Folder name for restore
# npm_home : Location of nginx-proxy-manager installation
restore_source=/media/Backups/nginx-proxy-manager
npm_home=/srv/nginx-proxy-manager
# Import protected variables
source /srv/bin/.env
# Restore Items