Skip to content
Snippets Groups Projects
Commit dbce7ee7 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs

parent b66e8733
No related branches found
No related tags found
1 merge request!101Desktop notification
......@@ -144,7 +144,7 @@ See [Hooks](50_Hooks/_index.md)
## Restic ##
* creates one initial full backup - and then never again. Then it makes incremental backups.
* creates one initial full backup - and then never again (then it starts incremental backups only).
* encrypts data
* deduplicates files
* delete backups by rules to keep a count of hourly, daily, weekly, mothly, yearly backups
......
```
## Typical Usage
This is the main script to start a backup. The script *backup.sh* is the one to add as a cronjob. It will start
* the dumps of local databases
* the file transfer to an external repository
Both of these steps can be started seperately (see next pages).
## Typical Usage
* on Linux: as a non root user use sudo `sudo ./backup.sh`
* on MS Windows: start it as user `./backup.sh`. Or double click it in a file manager (e.g. Explorer). The first time it asks what program should be used to open *.sh files - select the bash.exe ornavigate to it.
## Help
```txt
# ./backup.sh -?
___ ___ ___ ___ _______ __
......
## Make database dumps ##
## Make database dumps
To create backup dumps we use `./localdump.sh`
To create backup database dumps without transfer of local directory to a backup target use `sudo ./localdump.sh`.
Backup dumps will be stored as gzip files into `/var/iml-backup/[service]`.
## Help
```text
SYNTAX:
......@@ -20,7 +23,7 @@ ldap
mysql
pgsql
sqlite
```text
```
If you have local Mysql daemon or Pgsql you can test it by starting
......@@ -43,7 +46,7 @@ To dump schemes of a specific database type add the name of a known service.
sudo ./localdump.sh mysql
```
## Structure in the backup folder ##
## Structure in the backup folder
In the database dump folder is a subdir per service `/var/iml-backup/[service]`.
......@@ -54,7 +57,7 @@ All dumps are gzip compressed.
At the end of a backup task with localdump.sh older files older than *keep-days*
will be deleted from `/var/iml-backup/[service]`.
### Backup sqlite ###
### Backup sqlite
Keep in mind that you need to define sqlite databases in jobs/backup-dbfiles.job first.
......@@ -70,10 +73,11 @@ In the folder /var/iml-backup/sqlite/ it creates 2 files per database
* the gzip compressed dump (filename is full path with replacing `/` by `_`)
* a .META file that contains the original full path for restore
## Restore database dumps ##
## Restore database dumps
Remark:
To make a database restore its dump must be located at this directory.
To make a database restore its dump must be located at this directory:
`/var/iml-backup/[service]`
The value keepdays contains number of days how long to keep dumps locally.
If your dump to restore is older than this given range then you need
......
```
## Transfer files ##
To transfer local directories to a backup repository use `sudo ./transfer.sh`.
```txt
> ./transfer.sh -h
___ ___ ___ ___ _______ __
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment