Skip to content

Instantly share code, notes, and snippets.

View Matthieu-LAURENT39's full-sized avatar
🔎
RegEx is fun

Matthieu LAURENT Matthieu-LAURENT39

🔎
RegEx is fun
  • France
  • 02:07 (UTC +02:00)
View GitHub Profile
@Matthieu-LAURENT39
Matthieu-LAURENT39 / pcloud_cryfs_backup.sh
Created November 27, 2022 12:41
Encrypted backup in pcloud using CryFS and rsync
#!/bin/bash
# ========== CONFIG ==========
DIR_TO_BACKUP="/home/matthieu"
PCLOUD_BACKUP_DIR="/home/matthieu/pCloudDrive/EncryptedHome"
CRYPTFS_PASS='MyPassword'
# ============================
# exit if any command fails
set -e