#!/bin/csh -f #H# This script uses bind mounts to simulate NFS mounts. #H# Since this system is my backup server it has copies of my file servers stored on it. #H# I can therefore bind mount the backups into the place where those file servers #H# would normally be NFS mounted. This allows me to take this server elsewhere and #H# use it as a desktop and still have all of my files as if I were on my LAN. # The .current files are actually symlinks to the directory containing the most current # backup. Use realpath to determine where the symlink points and mount that. mount -vo bind `realpath /backup/rsync/asylum/_.current/root` /root mount -vo bind `realpath /backup/rsync/asylum/_home_asylum.current` /home/asylum mount -vo bind `realpath /backup/rsync/asylum/_home_asylum_kmk_graphics_movies_Music_Videos.current` /home/asylum/kmk/graphics/movies/Music_Videos mount -vo bind `realpath /backup/rsync/asylum/_usr.current/etc` /usr/etc mount -vo bind `realpath /backup/rsync/asylum/_usr_portage.current` /usr/portage mount -vo bind `realpath /backup/rsync/hellmouth/_home_hellmouth.current` /home/hellmouth mount -vo bind `realpath /backup/rsync/asylum/_mp3.current` /mp3 # Shut down crond since many jobs will fail without my netwok access svc -d /service/bcron*