ea23
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello, I'm new to FreeBSD and enjoyed it very much, but I found that uninstallation of a port is not easy, cause of the dependencies. There is also some ports like pkg_cutleaves, but you have to know the dependencies anyway.
So, I think it is better to make the relevant directories into ZFS subvolumes and snapshotting before & after the installation of a port, and if something goes wrong or you don't need it anymore, restore it from the snapshot. My question is, which directories are relevant for this. I believe /var and /usr except /usr/home should be there, but I'm not sure for other directories such as /etc, /bin or /sbin, etc.. any clues or are there better solution for this job? |
|
#2
|
|||
|
|||
|
Quote:
The ports database is in /var/db/. So with a snapshot of /usr and /var you should be able to restore. For /home you may use a /home mountpoint, with zfs that is easy. Regards Last edited by DutchDaemon; December 16th, 2011 at 01:32. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
| The Following User Says Thank You to plamaiziere For This Useful Post: | ||
kreoso (December 16th, 2011) | ||
|
#3
|
||||
|
||||
|
That would be the /usr/local directory. This is were all binaries and configuration files are stored during software installation. Some software will create directories under /var as well.
__________________
Powered by BareBSD |
| The Following User Says Thank You to gkontos For This Useful Post: | ||
kreoso (December 16th, 2011) | ||
|
#5
|
|||
|
|||
|
Quote:
By the way, snapshotting /var and /usr/local should suffice. I would add /etc if you don't already backup diligently configuration files, since usually adding a new program via ports mean you are going to enable some services and/or adjust some firewall rules. |
| The Following User Says Thank You to fluca1978 For This Useful Post: | ||
kreoso (December 21st, 2011) | ||
|
#6
|
||||
|
||||
|
There was a relevant project for FreeBSD. I haven't really followed it, therefore I can't express any opinion about it.
__________________
Powered by BareBSD |
| The Following User Says Thank You to gkontos For This Useful Post: | ||
kreoso (December 21st, 2011) | ||
![]() |
| Tags |
| ports, snapshot, zfs |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Backup and restore configurations from ports | minimike | Installation and Maintenance of FreeBSD Ports or Packages | 9 | September 26th, 2011 01:40 |
| [Solved] ZFS: backup snapshots with tar? | uisge | General | 2 | January 15th, 2011 11:16 |
| System Backup (ZFS) | embeddedbob | Userland Programming & Scripting | 0 | October 5th, 2010 13:55 |
| [Solved] zfs backup script for backup to disk | jbeez | General | 3 | September 10th, 2010 12:33 |
| Creating a consistent ZFS backup | olav | General | 7 | June 4th, 2010 00:02 |