1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Add backup script

This commit is contained in:
Maksym Pavlenko
2017-01-21 13:06:02 -08:00
parent da17cbe5a1
commit b2fc06fb1c

6
src/Podsync/backup.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
BACKUP_DIR=${1:-"$HOME/PodsyncBackups"}
mkdir -p $BACKUP_DIR
docker-machine scp podsync:/data/redis/appendonly.aof $BACKUP_DIR/redis.$(date '+%Y_%m_%d__%H_%M_%S').aof