Last active
May 14, 2026 16:10
-
-
Save nachocodexx/f50e8f8fc74fb9dc5cea2ee88f46151f to your computer and use it in GitHub Desktop.
nas-mounting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt update && sudo apt install nfs-common # For Ubuntu / Debian | |
| sudo dnf install nfs-utils # For RHEL / Rocky Linux / Fedora | |
| sudo mkdir -p /mnt/mictlanx | |
| sudo mount -t nfs <IP>:/nfs/mictlanx /mnt/mictlanx | |
| sudo mount -t nfs -o nfsvers=3 <IP>:/nfs/jub /mnt/jub | |
| ## For backup | |
| sudo tar -cvpzf /home/jcastillo/backups/nas_backup_$(date +%F).tar.gz /mnt/jub > /tmp/nas_backup.log 2>&1 & disown | |
| # Recover the backup | |
| sudo tar -xvpzf /home/jcastillo/backups/<backup_name>.tar.gz | |
| ## Rsync backup | |
| sudo rsync -aAX --delete /mnt/jub/ /home/jcastillo/backups/nas_mirror/ > /tmp/nas_rsync.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment