Using ReaR to backup a linux pc to a shared windows drive in one step
Relax-and-Recover (ReaR) Backup Summary for lpt-dell to Windows SMB Share via SSHFS
System Being Backed Up:
- Hostname: lpt-dell
- OS: Xubuntu (with Fish shell)
- Goal: Full system backup + bootable ISO stored on network share (Windows drive E:)
Backup Destination:
- Machine: Windows 11 Pro at 192.168.1.200
- Share path: E:\rear-backups-lpt-dell
- Access via: SSHFS from lpt-dell as user mark
Final Verified ReaR Configuration
/etc/rear/local.conf:
ini OUTPUT=ISO BACKUP=NETFS BACKUP_URL=file:///home/mark/mnt/rear-backups-lpt-dell
Working Backup Procedure
- Ensure SSH access to Windows is working:
- Unmount previous mount if needed:
- Mount the Windows backup folder with proper permissions:
- Clean up any stale files (optional but recommended):
sh
rm ~/mnt/rear-backups-lpt-dell/rear-lpt-dell.iso
5. **Create the backup folder on the share (if not already present):**
```sh
mkdir -p ~/mnt/rear-backups-lpt-dell/lpt-dell
- Run ReaR backup (as root):
Outcome:
- ISO created at /var/lib/rear/output/rear-lpt-dell.iso
- Backup archive written to /home/mark/mnt/rear-backups-lpt-dell/lpt-dell/backup.tar.gz
Notes:
- ReaR rejects BACKUP_URL paths that reside on / partition. Using mounted SSHFS folder bypasses this.
- The ISO and backup are not stored together by default; ISO must be copied separately if needed.
- Root access is required to run rear mkbackup and access mounted destinations.
Optional Cleanup: To remove temporary ReaR data from the local system:
Status: Fully verified as working.