umap/scripts/backup.sh
2021-10-04 12:10:08 +02:00

13 lines
273 B
Bash
Executable file

#!/bin/bash
docker-compose down
[[ -f $HOME/backup ]] && mkdir $HOME/backup ; mkdir $HOME/backup/umap
# db
zip -r $HOME/backup/umap/db_$(date +"%Y-%B-%d").zip db
# media and geojson
zip -r $HOME/backup/umap/uploads_$(date +"%Y-%B-%d").zip uploads
docker-compose up -d