mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 17:01:03 +00:00
7 lines
213 B
Bash
7 lines
213 B
Bash
|
#!/bin/bash
|
||
|
path=./backups
|
||
|
today=$(date +"%Y%m%d")
|
||
|
timestamp=$(date +"%Y%m%d%H%M%S")
|
||
|
mkdir -p $path/$today
|
||
|
pg_dump hackmd > $path/$today/postgresql_$timestamp
|
||
|
mongodump -d hackmd -o $path/$today/mongodb_$timestamp
|