Update password backup scripts
This commit is contained in:
1 parent
a6a85d1ea5
commit
2f4ed6cc51
2 files changed
+22
-2
No files matched your search
+3
-2
@@ -13,8 +13,9 @@ RCLONE_REMOTE="proton-drive"
|
||||
# Reference: <https://unix.stackexchange.com/questions/100871/in-a-bash-if-condition-how-to-check-whether-any-files-matching-a-simple-wildcard>
|
||||
if [ 0 -lt "$(ls $HOME/doc/*.kdbx 2>/dev/null | wc -w)" ]; then
|
||||
echo "Saving KeePassXC databases and database keys"
|
||||
rclone copyto \
|
||||
"$HOME/doc/" proton-drive:doc/ \
|
||||
rclone copyto \
|
||||
"$HOME/doc/" "$RCLONE_REMOTE:doc"/ \
|
||||
--progress \
|
||||
--include "/*.{kdbx,kdbx.key}"
|
||||
else
|
||||
echo "No password database found, use the following commands to restore"
|
||||
|
||||
Reference in new issue
Block a user