-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 799 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
sync: brew-install
brew bundle --cleanup
brew-install:
@command -v brew >/dev/null || /bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
rust-install:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
update:
git fetch
update-force:
git fetch --all
git reset --hard origin/main
# Borgmatic backup setup (m3max only)
borgmatic-setup:
@echo "Pulling borg passphrase from Bitwarden..."
@pass=$$(bw get password "borgmatic - m3max") && \
security add-generic-password -a borgmatic -s borg-repo -U -w "$$pass" && \
echo "Passphrase stored in Keychain." && \
BORG_PASSPHRASE="$$pass" borgmatic init --encryption repokey && \
echo "Done. Backups will run hourly at :00."
borgmatic-test:
borgmatic create --verbosity 1 --dry-run