flocon/scripts/.scripts/sync.sh
2023-06-01 11:26:29 +02:00

7 lines
236 B
Bash
Executable file

#!/bin/sh
[ ! -f $HOME/passwords.kdbx ] && rclone copy drive:passwords.kdbx $HOME
[ ! -d $HOME/org ] && rclone copy drive:org $HOME
rclone sync $HOME/passwords.kdbx drive:
rclone sync $HOME/org --include "**.{org,png,jpeg}" drive:org