SeaCogs/.docs/backup.md

34 lines
1.2 KiB
Markdown
Raw Normal View History

2024-01-31 12:31:37 -05:00
# Backup
Backup allows you to export a JSON list of all of your installed repositories and cogs, then reimport them and automatically reinstall/reload the cogs.
## Installation
```bash
[p]repo add seacogs https://www.coastalcommits.com/SeaswimmerTheFsh/SeaCogs
[p]cog install seacogs backup
2024-01-31 12:31:37 -05:00
[p]cog load backup
```
## Version Compatibility
As of commit [1edb08a](https://www.coastalcommits.com/SeaswimmerTheFsh/SeaCogs/commit/1edb08a1271f12098ca0bed11a735f7162cedd14), the Backup cog no longer supports Red versions older than 3.5.6. If you want to use the cog on an earlier version (3.5.0 - 3.5.5), install the cog pinned to this commit: `43464db6a7c51bc69282b1ae3dc507a4aae851de`.
```bash
[p]cog installversion sea-cogs 43464db6a7c51bc69282b1ae3dc507a4aae851de backup
```
2024-01-31 12:31:37 -05:00
## Commands
2024-01-31 12:34:26 -05:00
### backup export
2024-01-31 12:31:37 -05:00
- Usage: `[p]backup export`
Exports a JSON list of all of your added repositories, and their installed cogs.
2024-01-31 12:34:26 -05:00
### backup import
2024-01-31 12:31:37 -05:00
2024-01-31 15:48:23 -05:00
- Usage: `[p]backup import`
2024-01-31 12:31:37 -05:00
2024-01-31 15:48:23 -05:00
Reinstalls repositories and cogs from a valid export. Requires the JSON export to be attached to the invoking message as an attachment. Ignores itself and PyLav cogs, due to possible conflicts with Docker images.