summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-17 20:08:33 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-17 20:08:33 -0300
commit7274bbc31594f74e74e3bd6829c6f42f358862f7 (patch)
tree39ea51c9a6aa1cbf73bbdcb513bf5a66c66d8dee /content
parentc012021fd5e3e5317350cf7b9ad2a1b5cf1f98d8 (diff)
Added backups to Advanced
Diffstat (limited to 'content')
-rw-r--r--content/advanced/backups.md73
-rw-r--r--content/advanced/torrenting.md4
-rw-r--r--content/advanced/vpn.md2
-rw-r--r--content/config/easy-mode.md6
4 files changed, 79 insertions, 6 deletions
diff --git a/content/advanced/backups.md b/content/advanced/backups.md
new file mode 100644
index 0000000..0e859d2
--- /dev/null
+++ b/content/advanced/backups.md
@@ -0,0 +1,73 @@
+---
+title: "Backups"
+date: 2023-01-17T19:38:39-03:00
+draft: false
+weight: 3
+summary: Backup your YAMS configuration.
+---
+
+Your YAMS configuration is located in your install location.
+
+## Create a backup
+
+For the purposes of this tutorial, I'll assume your YAMS install directory is `/opt/yams`, and that you want to create a backup on your `~` directory.
+
+First, go to the YAMS install directory and do a `ls`. You should see the `config` folder right there:
+
+```bash
+$ cd /opt/yams/
+/opt/yams$ ls
+
+# Output
+config docker-compose.yaml
+```
+
+To create a backup, just run:
+
+```bash
+/opt/yams/config$ tar -czvf ~/yams-backup.tar.gz config/*
+```
+
+`tar` is going to compress and create a `.tar.gz` file called `yams-backup.tar.gz` on the `~` directory.
+
+Remember you should store your backups in a secure location!
+
+## Restore a backup
+
+For the purposes of this tutorial, I'll assume your YAMS install directory is `/opt/yams`, and that the backup is located in `~/yams-backup.tar.gz`.
+
+To restore a backup, first stop YAMS:
+
+```bash
+$ yams stop
+```
+
+Then, go to your YAMS install directory and delete everything inside the `config` folder.
+
+```bash
+$ cd /opt/yams
+/opt/yams$ rm -r config/*
+```
+
+Now, untar the backup file on your YAMS install directory.
+
+```bash
+/opt/yams$ tar -xzvf ~/yams-backup.tar.gz
+```
+
+If you see all the folders inside the `config` directory, it means it worked!
+
+```bash
+/opt/yams$ ls config
+
+# Output
+bazarr emby gluetun jackett qbittorrent radarr sonarr
+```
+
+Finally, restart YAMS
+
+```bash
+/opt/yams$ yams start
+```
+
+Everything should be running as expected, with your backup up and running!
diff --git a/content/advanced/torrenting.md b/content/advanced/torrenting.md
index dbab4b7..3f3001b 100644
--- a/content/advanced/torrenting.md
+++ b/content/advanced/torrenting.md
@@ -2,8 +2,8 @@
title: "Torrenting"
date: 2023-01-16T14:48:14-03:00
draft: false
-weight: 100
-summary: Advanced torreting advices
+weight: 2
+summary: Advanced torreting advices.
---
## Dowloading torrents manually
diff --git a/content/advanced/vpn.md b/content/advanced/vpn.md
index b6aeead..7dd2625 100644
--- a/content/advanced/vpn.md
+++ b/content/advanced/vpn.md
@@ -3,7 +3,7 @@ title: "VPN"
date: 2023-01-15T21:16:29-03:00
draft: false
weight: 1
-summary: Advanced configuration for the VPN, supported VPN lists and manual configuration
+summary: Advanced configuration for the VPN, supported VPN lists and manual configuration.
---
Remember: **You should always use a VPN when downloading torrents!**.
diff --git a/content/config/easy-mode.md b/content/config/easy-mode.md
index 89b21ab..186ed8a 100644
--- a/content/config/easy-mode.md
+++ b/content/config/easy-mode.md
@@ -49,10 +49,10 @@ Then, `rm -r` all the files on the `config` folder:
/opt/yams/config$ rm -r *
```
-To finish, extract the base file in your config folder. Remember to replace `{your-yams-install-location}` with the real location within your filesystem:
+To finish, extract the base file in your config folder. Remember to replace `{your-yams-clone-location}` with the real location within your filesystem:
```bash
-/opt/yams/config$ tar -xzvf {your-yams-install-location}/base/base-config.tar.gz
+/opt/yams/config$ tar -xzvf {your-yams-clone-location}/base/base-config.tar.gz
```
If you `ls` now, you'll see all the folders where extracted and are available again
@@ -61,7 +61,7 @@ If you `ls` now, you'll see all the folders where extracted and are available ag
bazarr emby jackett qbittorrent radarr sonarr
```
-To restart `yams`, execute:
+To restart `yams`, run:
```bash
/opt/yams/config$ yams start
```