Skip to content

Instantly share code, notes, and snippets.

@yzgyyang
Created June 20, 2017 15:15
Show Gist options
  • Save yzgyyang/b6a22e605d15c391a1287a65dc4254cb to your computer and use it in GitHub Desktop.
Save yzgyyang/b6a22e605d15c391a1287a65dc4254cb to your computer and use it in GitHub Desktop.
FreeBSD backup filesystem

To dump a filesystem into /mnt (a filesystem mounted on a seperate disk)…

cd /mnt
dump -L -0 -f- /path/to/origin | restore -r -f-

For remote operations, pipe the restore command via ssh:

dump -L -0 -f- /path/to/origin | ssh -2 -C -l remoteuser 192.168.0.2 restore -r -f-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment