Skip to content

Commit

Permalink
Create backup_netfs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gdha authored Oct 22, 2024
1 parent 7efdf64 commit fb71798
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/basics/backup_netfs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Configuring BACKUP=NETFS example

This configuration will create a bootable ISO image and store the backup on an NFS server.

## Configuration Example

1. Create or edit the local.conf file:

``bash
# /etc/rear/local.conf
OUTPUT=ISO
BACKUP=NETFS
BACKUP_OPTIONS="nfsvers=3,nolock"
BACKUP_URL=nfs://<NFS_SERVER_IP>/path/to/backup
``
2. Explanation:

* `OUTPUT=ISO`: Specifies that the output should be a bootable ISO image.
* `BACKUP=NETFS`: Uses the NETFS method for backup, which supports network file systems like NFS.
* `BACKUP_OPTIONS="nfsvers=3,nolock"`: Sets the NFS mount options. Here, it specifies NFS version 3 and disables file locking.
* `BACKUP_URL=nfs://<NFS_SERVER_IP>/path/to/backup`: The URL of the NFS server where the backup will be stored. Replace <NFS_SERVER_IP> with the actual IP address of your NFS server and /path/to/backup with the actual path on the NFS server.

## Running the Backup

To create the backup, run the following command:

``bash
rear -v mkbackup
``

This command will create the backup and store it on the specified NFS share.

0 comments on commit fb71798

Please sign in to comment.