Skip to content

Commit

Permalink
add etcd backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkukral committed Feb 1, 2018
1 parent c8a96e6 commit 75b3415
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etcd_backup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
TIMESTAMP=$(date +'%Y%m%d-%H%M%S')
HOSTNAME=$(hostname --fqdn)

DATADIR="/mnt/storage/kqueen/etcd/"
BACKUPDIR="/mnt/storage/backup/backup-${HOSTNAME}-${TIMESTAMP}"

etcdctl backup --data-dir "${DATADIR}" --backup-dir "${BACKUPDIR}"

0 comments on commit 75b3415

Please sign in to comment.