diff options
| author | Sam Scholten | 2025-09-11 16:11:31 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-09-11 16:11:31 +1000 |
| commit | 8f800a72d3603ead29e072eb5dbf5af7d31eece2 (patch) | |
| tree | 08c2c067d75383e0cb4887232d04ee520511b23a /README.md | |
| parent | f605d4a16c530472155bd9f839c735116feb56a4 (diff) | |
| download | drestic-8f800a72d3603ead29e072eb5dbf5af7d31eece2.tar.gz drestic-8f800a72d3603ead29e072eb5dbf5af7d31eece2.zip | |
.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 47 |
1 files changed, 23 insertions, 24 deletions
@@ -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 |
