Created
January 4, 2018 23:35
-
-
Save eruffaldi/72353d5062271e844a1cf9679f9a9e98 to your computer and use it in GitHub Desktop.
mount and open folder restic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -s -p "Enter Password: " mypassword | |
set -m | |
RESTIC_PASSWORD=$mypassword restic -r $REPO_PATH mount $MOUNT_PATH & | |
lastp=$! | |
sleep 2 | |
open $MOUNT_PATH/tags/$TAG/latest | |
fg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment