#!/bin/bash

DATE=`date +%Y-%m-%d`

if [ -d ~/Library/Application\ Support/Metaverse ];then
    echo " ==== Metaverse Wallet found. ==="
    echo " ==== $DATE ==="
    echo " ==== START BACKUP ... ==== "
    pkill -9 mvsd
    sleep 3
    echo " ==== mvsd stoped ... ==== "
    BACKUP="mainnet.ok.$DATE"
    cp -rf ~/Library/Application\ Support/Metaverse/mainnet ~/Library/Application\ Support/Metaverse/$BACKUP
    echo " ==== BACKUP as $BACKUP DONE ... ==== "
fi
