dashboard
repositories
filestore
activity
search
login
main
/
Scripts
mirror of
https://github.com/Chizi123/Scripts.git
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
added ydotool for wayland
Joel Grunbaum
2021-07-27
ea9da2c385dde48411e0500d10a778cbde000896
[Scripts.git]
/
kpsync.sh
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