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

update docs

parent ab8f04f8
No related branches found
No related tags found
1 merge request!31update docs
```
# ./backup.sh -?
___ ___ ___ ___ _______ __
| | Y | | | _ .---.-.----| |--.--.--.-----.
|. |. |. | |. 1 | _ | __| <| | | _ |
|. |. \_/ |. |___ |. _ |___._|____|__|__|_____| __|
|: |: | |: 1 | |: 1 \ |__|
|::.|::.|:. |::.. . | |::.. . /
`---`--- ---`-------' `-------'
_______________________________________________________________________________ ___ __ _
Param: show help
START A BACKUP
This script starts
- the database backups and creates dumps locally
- the file backup (using restic or duplicity)
SYNTAX:
backup.sh [OPTIONS]
default: no parameter:
OPTIONS:
-d, --dryrun just show infos, do not start a backup
-h, --help Show this help
The following parameters force the backup type (if using duplicity):
-a, --auto force auto
-o, --older duplicity type=auto: repeat full backup if last full
backup is older than ... like "1M" for 1 month
-f, --full force full backup (if supported)
-i, --inc force incrmenental backup
```
File moved
```
# ./transfer.sh -?
___ ___ ___ ___ _______ __
| | Y | | | _ .---.-.----| |--.--.--.-----.
|. |. |. | |. 1 | _ | __| <| | | _ |
|. |. \_/ |. |___ |. _ |___._|____|__|__|_____| __|
|: |: | |: 1 | |: 1 \ |__|
|::.|::.|:. |::.. . | |::.. . /
`---`--- ---`-------' `-------'
,--. ,---.
,-' '-.,--.--. ,--,--.,--,--, ,---. / .-' ,---. ,--.--.
'-. .-'| .--'' ,-. || \( .-' | `-,| .-. :| .--'
| | | | \ '-' || || |.-' `)| .-'\ --.| |
`--' `--' `--`--'`--''--'`----' `--' `----'`--'
_______________________________________________________________________________ ___ __ _
HELP:
Transfer local files to a backup target.
target sftp://imlbackup@storage-connector.iml.unibe.ch//netshare/restic-backup
backup tool restic
PARAMETERS:
transfer.sh - incremental backup
transfer.sh full - full backup
transfer.sh dumps - transfer local dumps only
transfer.sh prune - cleanup backup data only (no backup)
transfer.sh help - show this help (works with -h and -? too)
```
To start a daily backup at 23:03:
```shell
$ cat /etc/cron.d/client-backup
3 23 * * * root /opt/imlbackup/client/backup.sh >/dev/null 2>&1
```
... or with using the cronwrapper
see <https://github.com/axelhahn/cronwrapper>
TTL is 1440 for 1440 min = 1d
```shell
$ cat /etc/cron.d/client-backup
3 23 * * * root /usr/local/bin/cronwrapper.sh 1440 /opt/imlbackup/client/backup.sh 'iml-backup'
```
TODO
To start an interactive tool:
`./restore.sh`
or
`./restore.sh [backupped_folder]`
TODO
`localdump.sh reatore [type]`
i.e.
`localdump.sh reatore mysql`
to start interactive restore.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment