summaryrefslogtreecommitdiff
path: root/.local/bin/cryptusb/sync-cryptusb
blob: 6ba273783ddf81dafe218f5299bf08148d229504 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
# Syncs important files to encrypted USB

mount-device && \
rsync -avP --exclude="virtual_machines*" --exclude="media*" \
		--exclude="*.iso" --exclude="*.qcow2" \
		$HOME/ /mnt/cryptusb/$USER@$(hostname)/ && \
unmount-device