Update b_n_r_backup.md
Dieser Commit ist enthalten in:
Ursprung
e8a7206a12
Commit
abb2b71e9d
1 geänderte Dateien mit 9 neuen und 6 gelöschten Zeilen
|
@ -5,17 +5,20 @@ You can use the provided script `helper-scripts/backup_and_restore.sh` to backup
|
||||||
Please do not copy this script to another location.
|
Please do not copy this script to another location.
|
||||||
|
|
||||||
To run a backup, write "backup" as first parameter and either one or more components to backup as following parameters.
|
To run a backup, write "backup" as first parameter and either one or more components to backup as following parameters.
|
||||||
You can also use "all" as second parameter to backup all components.
|
You can also use "all" as second parameter to backup all components. Append `--delete-days n` to delete backups older than n days.
|
||||||
|
|
||||||
```
|
```
|
||||||
# Syntax:
|
# Syntax:
|
||||||
# ./helper-scripts/backup_and_restore.sh backup (vmail|crypt|redis|rspamd|postfix|mysql|all)
|
# ./helper-scripts/backup_and_restore.sh backup (vmail|crypt|redis|rspamd|postfix|mysql|all|--delete-days)
|
||||||
|
|
||||||
# Backup all
|
# Backup all, delete backups older than 3 days
|
||||||
./helper-scripts/backup_and_restore.sh backup all
|
./helper-scripts/backup_and_restore.sh backup all --delete-days 3
|
||||||
|
|
||||||
# Backup vmail, crypt and mysql data
|
# Backup vmail, crypt and mysql data, delete backups older than 30 days
|
||||||
./helper-scripts/backup_and_restore.sh backup vmail crypt mysql
|
./helper-scripts/backup_and_restore.sh backup vmail crypt mysql --delete-days 30
|
||||||
|
|
||||||
|
# Backup vmail
|
||||||
|
./helper-scripts/backup_and_restore.sh backup vmail
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren