You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Backup-and-Restore.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ The backup command can be executed from IOTstack's menu, or from a cronjob.
8
8
To ensure that all your data is saved correctly, the stack should be brought down. This is mainly due to databases potentially being in a state that could cause data loss.
9
9
10
10
There are 2 ways to run backups:
11
+
11
12
* From the menu: `Backup and Restore` > `Run backup`
12
13
* Running the following command: `bash ./scripts/backup.sh`
13
14
@@ -21,6 +22,7 @@ The current directory of bash must be in IOTstack's directory, to ensure that it
21
22
```
22
23
./scripts/backup.sh {TYPE=3} {USER=$(whoami)}
23
24
```
25
+
24
26
* Types:
25
27
* 1 = Backup with Date
26
28
* A tarball file will be created that contains the date and time the backup was started, in the filename.
@@ -33,10 +35,12 @@ The current directory of bash must be in IOTstack's directory, to ensure that it
33
35
If this parameter is not supplied when run as root, the script will ask for the username as input
34
36
35
37
Backups:
38
+
36
39
* You can find the backups in the ./backups/ folder. With rolling being in ./backups/rolling/ and date backups in ./backups/backup/
37
40
* Log files can also be found in the ./backups/logs/ directory.
38
41
39
42
### Examples:
43
+
40
44
*`./scripts/backup.sh`
41
45
*`./scripts/backup.sh 3`
42
46
@@ -52,6 +56,7 @@ This will only produce a backup in the rollowing folder and change all the permi
52
56
53
57
## Restore
54
58
There are 2 ways to run a restore:
59
+
55
60
* From the menu: `Backup and Restore` > `Restore from backup`
56
61
* Running the following command: `bash ./scripts/restore.sh`
57
62
@@ -64,6 +69,7 @@ There are 2 ways to run a restore:
* Filename: The name of the backup file. The file must be present in the `./backups/` directory, or a subfolder in it. That means it should be moved from `./backups/backup` to `./backups/`, or that you need to specify the `backup` portion of the directory (see examples)
68
74
* NoAsk: If a second parameter is present, is acts as setting the no ask flag to true.
Copy file name to clipboardExpand all lines: docs/Updating-the-Project.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Periodically updates are made to project which include new or modified container template, changes to backups or additional features. As these are released your local copy of this project will become out of date. This section deals with how to bring your project to the latest published state.
4
4
5
-
Quick instructions:
5
+
## Quick instructions
6
6
7
7
1. backup your current settings: `cp docker-compose.yml docker-compose.yml.bak`
8
8
2. check `git status` for any local changes you may have made to project files. Save and preserve your changes by doing a commit: `git commit -a -m "local customization"`. Or revert them using: `git checkout -- path/to/changed_file`.
@@ -12,21 +12,24 @@ Quick instructions:
12
12
6. update running containers to latest: `docker-compose up --build -d`
13
13
14
14
*Troubleshooting:* if a container fails to restart after update
15
+
15
16
* try restarting the whole stack: `docker-compose restart`
16
17
* backup your stack settings: `cp docker-compose.yml docker-compose.yml.bak`
17
18
* Check log output of the failing service: `docker-compose logs *service-name*`
18
-
* try googling and fixing problems in docker-compose.yml manually.
19
+
* try googling and fixing problems in docker-compose.yml manually.
19
20
* try recreating the failing service definition using menu.sh:
20
-
*`./menu.sh`, select Build Stack, unselect the failing service, press enter
21
-
to build, and then exit.
22
-
*`./menu.sh`, select Build Stack, select the service back again, press enter
23
-
to build, and then exit.
24
-
* Try starting now: `docker-compose up -d`
25
-
* Go to the IOTStack Discord and ask for help.
21
+
1.`./menu.sh`, select Build Stack, unselect the failing service, press
22
+
enter to build, and then exit.
23
+
2.`./menu.sh`, select Build Stack, select the service back again, press
24
+
enter to build, and then exit.
25
+
3. Try starting now: `docker-compose up -d`
26
+
* Go to the [IOTStack Discord](https://discord.gg/ZpKHnks) and describe your
27
+
problem. We're happy to help.
26
28
27
29
## Details, partly outdated
28
30
29
-
**If you ran the git checkout -- 'git ls-files -m' as suggested in the old wiki entry then please check your duck.sh because it removed your domain and token**
31
+
!!! warning
32
+
If you ran `git checkout -- 'git ls-files -m'` as suggested in the old wiki entry then please check your duck.sh because it removed your domain and token
30
33
31
34
Git offers build in functionality to fetch the latest changes.
0 commit comments