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

Joel Grunbaum
2021-08-31 5ce9b0c04ee5b5e9dc5b2ae9b99a70a4857ae666
1
2
3
4
5
6
7
8
9
10
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