Skip to content

Instantly share code, notes, and snippets.

@eruffaldi
Created January 4, 2018 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eruffaldi/72353d5062271e844a1cf9679f9a9e98 to your computer and use it in GitHub Desktop.
Save eruffaldi/72353d5062271e844a1cf9679f9a9e98 to your computer and use it in GitHub Desktop.
mount and open folder restic
#!/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