diff options
| author | Sam Scholten | 2025-09-11 16:24:58 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-09-11 16:29:06 +1000 |
| commit | 0556a3bf965a8972356765bd20026beaed171f30 (patch) | |
| tree | 84c42a393a861b51c19850ebc490fc1e5db1b189 /Makefile | |
| parent | 8f800a72d3603ead29e072eb5dbf5af7d31eece2 (diff) | |
| download | drestic-0556a3bf965a8972356765bd20026beaed171f30.tar.gz drestic-0556a3bf965a8972356765bd20026beaed171f30.zip | |
unique Restic repository paths per host
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -181,7 +181,9 @@ test-remote-teardown: @rm -rf /tmp/drestic-recovery-restore @echo "Test environment cleaned up!" @echo "Note: Test snapshots remain in your MEGA repository. Clean manually if needed:" - @echo " restic forget --repo rclone:backup_remote:/restic_backups --tag daily --prune" + @echo " # The repository path is unique per host. Find it in ~/.config/restic/env" + @echo " # Example for a host named 'my-server':" + @echo " restic forget --repo rclone:backup_remote:/drestic_backups_my-server --tag daily --prune" # Test file recovery using existing test data test-remote-recovery: @@ -321,9 +323,11 @@ recover: @echo " System scope: make snapshots-system" @echo "" @echo "Step 2: Mount backup as filesystem (easiest method)" + @echo " # The repository path is unique per host (e.g., drestic_backups_my-server)." + @echo " # Find your exact path in the 'env' file (~/.config/restic/env or /root/.restic_env)." @echo " mkdir ~/restore" - @echo " User scope: RESTIC_PASSWORD_FILE=~/.config/restic/password restic mount ~/restore --repo rclone:backup_remote:/restic_backups" - @echo " System scope: sudo RESTIC_PASSWORD_FILE=/root/.restic_password restic mount ~/restore --repo rclone:backup_remote:/restic_backups" + @echo " User scope: RESTIC_PASSWORD_FILE=~/.config/restic/password restic mount ~/restore --repo rclone:backup_remote:/drestic_backups_my-server" + @echo " System scope: sudo RESTIC_PASSWORD_FILE=/root/.restic_password restic mount ~/restore --repo rclone:backup_remote:/drestic_backups_my-server" @echo "" @echo "Step 3: Browse files in ~/restore/ (like a normal folder)" @echo " cd ~/restore/snapshots/latest/home/username/" @@ -333,7 +337,8 @@ recover: @echo " umount ~/restore" @echo "" @echo "Alternative: Restore specific files directly" - @echo " restic restore latest --target /tmp/restore --include /path/to/file --repo rclone:backup_remote:/restic_backups" + @echo " # Remember to use your unique repository path (e.g., rclone:backup_remote:/drestic_backups_my-server)" + @echo " restic restore latest --target /tmp/restore --include /path/to/file --repo rclone:backup_remote:/drestic_backups_my-server" @echo "" @echo "For more details, see README.md Recovery section" |
