FreeBSD Backup
probsd org
probsdorg at yahoo.com
Tue Dec 12 07:06:28 PST 2006
This is assuming you have another account on another freebsd/linux box with a significant amount of space. Works great on a live filesystem. I use /, /var, /tmp, and /usr as examples.
dump -L -0f - /usr | ssh -C login at other-freebsd-server "cat > /usr/home/login/usr.dump"
dump -L -0f - /tmp | ssh -C login at other-freebsd-server "cat > /usr/home/login/tmp.dump"
dump -L -0f - /var | ssh -C login at other-freebsd-server "cat > /usr/home/login/var.dump"
dump -L -0f - / | ssh -C login at other-freebsd-server "cat > /usr/home/login/root.dump"
Then to restore:
cd /usr ; ssh -C login at other-freebsd-server "cat /usr/home/login/usr.dump" | restore -rf -
cd / ; ssh -C login at other-freebsd-server "cat /usr/home/login/root.dump" | restore -rf -
cd /var ; ssh -C login at other-freebsd-server "cat /usr/home/login/var.dump" | restore -rf -
cd /tmp ; ssh -C login at other-freebsd-server "cat /usr/home/login/tmp.dump" | restore -rf -
michael
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
More information about the freebsd-questions
mailing list