Add backup scripts
This commit is contained in:
parent
7da2098ac0
commit
be564cfb95
3 changed files with 219 additions and 0 deletions
11
backup.sh
Executable file
11
backup.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
_now=$(date +"%Y-%m-%d")
|
||||
|
||||
compose_project="mailuwuemail"
|
||||
compose_volumes=( "mail_data" "mail_state" "roundcube_sqlite" )
|
||||
|
||||
for volume in "${compose_volumes[@]}"
|
||||
do
|
||||
volume_name="${compose_project}_${volume}"
|
||||
./vackup export "${volume_name}" "backup_${_now}.${volume_name}.tar.gz"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue