Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdetweil/MagicMirror-backup-restore
scripts for backing up magicmirror config and module github urls and using that to restore at a later time
https://github.com/sdetweil/MagicMirror-backup-restore
Last synced: 15 days ago
JSON representation
scripts for backing up magicmirror config and module github urls and using that to restore at a later time
- Host: GitHub
- URL: https://github.com/sdetweil/MagicMirror-backup-restore
- Owner: sdetweil
- Created: 2021-11-29T15:10:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T03:05:42.000Z (24 days ago)
- Last Synced: 2024-06-01T03:43:50.723Z (23 days ago)
- Language: Shell
- Size: 56.6 KB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Lists
- awesome-stars - sdetweil/MagicMirror-backup-restore - scripts for backing up magicmirror config and module github urls and using that to restore at a later time (Shell)
README
# MagicMirror-backup-restore
scripts for backing up magicmirror config and module github urls and using that to restore at a later timethese scripts will save the config.js , custom.css and the list of installed modules (and where they are loaded from (github urls)
into a git repo, so they can be versioned and uploaded to a **private** github repositorythe restore script takes the info saved and copies back the config.js, custom.css and re-installs each module
it assumes a new MagicMirror install has been completed
both scripts support help with -h
and parms for where the MagicMirror folder is -s , default $HOME/MagicMirror
and the name of the backup folder, -b , default $HOME/MM_backup
one can execute the scripts directly from here
# to execute Backup
```bash
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/mm_backup.sh)" with any parms
```help for backup is
./mm_backup.sh -h
./mm_backup.sh takes optional parameters
-s MagicMirror_dir
default /home/sam/MagicMirror-b backup_dir
default /home/sam/MM_backup-m backup_message
any message (in quotes) that you would like to attach to this change for later info
default none-p auto push to github (will need repo name, username, user password or token
default false-r github_repository_name (reponame)
typically https://github.com/username/reponame.git
default output of git remote -v (if set)
-r overrides the git remote setting-u github_username
default none-e users_email_address
default none
# and to restore
```bash
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/mm_restore.sh)" with any parms
```help for restore is
./mm_restore.sh -h
./mm_restore.sh takes optional parameters
-s MagicMirror_dir
default /home/sam/MagicMirror-b backup_dir
default /home/sam/MM_backup-f [tag_number]
fetch/clone repo and restore latest, or optional tag_number-r github repository name (reponame)
typically https://github.com/username/reponame.git
default output of git remote -v (if set)
-r overrides the git remote setting-u github username
default noneon backup, each collection of files is given a label, called a tag in git.
for this application the tag is a number, starting at 1by default list-tags will use the ~/MM_backup folder name
help for list_tags is
./list_tags.sh -h
./list_tags.sh takes optional parameters
-b backup_dir
default /home/username/MM_backup# to list the tags copy/paste this command
```bash
bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror-backup-restore/main/list_tags.sh)" ??
```