From 8f800a72d3603ead29e072eb5dbf5af7d31eece2 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Thu, 11 Sep 2025 16:11:31 +1000 Subject: . --- README.md | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index f4f5dda..4f71505 100644 --- a/README.md +++ b/README.md @@ -5,24 +5,23 @@ Automated, encrypted, and deduplicated backups to MEGA cloud storage using resti ## Setup 1. Clone the repository: - ```sh - git clone https://github.com/casparvitch/drestic - cd drestic - ``` +```sh +git clone https://github.com/casparvitch/drestic +cd drestic +``` 2. Install dependencies (supports apt, yum, pacman, zypper): - ```sh - make install-deps - ``` +```sh +make install-deps +``` 3. Run the setup script: - ```sh - # For a personal machine (backs up /home/user) - make setup-user - - # For a server (backs up /etc, /home, /root, etc.) - # make setup-system - ``` +```sh +# For a personal machine (backs up /home/user) +make setup-user +# For a server (backs up /etc, /home, /root, etc.) +# make setup-system +``` The script will prompt for your MEGA credentials and a new restic repository password. **Store the restic password safely.** ## Usage @@ -53,22 +52,22 @@ make snapshots The easiest method is to mount the repository. 1. Create a mount point: - ```sh - mkdir ~/restore - ``` +```sh +mkdir ~/restore +``` 2. Mount the backup: - ```sh - # For user scope - RESTIC_PASSWORD_FILE=~/.config/restic/password restic mount ~/restore --repo rclone:backup_remote:/restic_backups - ``` +```sh +# For user scope +RESTIC_PASSWORD_FILE=~/.config/restic/password restic mount ~/restore --repo rclone:backup_remote:/restic_backups +``` 3. Browse `~/restore/snapshots/latest/` to find your files. 4. Unmount when finished: - ```sh - umount ~/restore - ``` +```sh +umount ~/restore +``` ## Configuration -- cgit v1.2.3