diff options
-rwxr-xr-x | couchdb_dumpall.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/couchdb_dumpall.sh b/couchdb_dumpall.sh index 074d909..eca14e9 100755 --- a/couchdb_dumpall.sh +++ b/couchdb_dumpall.sh @@ -5,8 +5,9 @@ echo "excluding $EXCLUDE_DBS" -# create backupdir -[ -d $DUMPDIR ] || mkdir $DUMPDIR +# remove old content and create fresh backupdir +[ -d $DUMPDIR ] && rm -rf $DUMPDIR +mkdir $DUMPDIR dbs="`get_dbs $URL`" |