mirror of https://github.com/Chizi123/Scripts.git

Joel Grunbaum
2021-05-09 ae94c23b878121b9290948bb0cb6301a1e092a9e
sync database with gdrive
1 files added
11 ■■■■■ changed files
kpsync.sh 11 ●●●●● patch | view | raw | blame | history
kpsync.sh
New file
@@ -0,0 +1,11 @@
#!/bin/bash
if [ "$1" = "pull" ]; then
    rclone sync GoogleDrive:/Database.kdbx /tmp/
elif [ "$1" = "push" ]; then
    rclone sync /tmp/Database.kdbx GoogleDrive:/
    rm -rf /tmp/Database.kdbx
else
    echo "Usage: $0 pull|push"
    exit 1
fi