summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md47
1 files 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