[OpenIndiana-discuss] I'd like to backup my entire OpenIndiana installation using Restic. Which directories should I exclude?

Joshua M. Clulow josh at sysmgr.org
Mon Apr 19 05:04:25 UTC 2021


On Sun, 18 Apr 2021 at 21:15, Judah Richardson
<judahrichardson at gmail.com> wrote:
> On Linux and FreeBSD, there are some directories, such as /proc, that
> generally shouldn't be backed up or aren't worth backing up since a new
> installation regenerates them or generates their own anyway.
>
> What are those directories for OpenIndiana?

I would probably exclude at least "/proc" and "/dev" and "/system".
It might be worth taking a look at the filesystem(5) manual page, or
perhaps you can look at all of the things that are mounted from file
systems other than ZFS to get some hints on areas you might want to
exclude; e.g.,

    $ awk '$3 != "zfs" { printf("%-20s %s\n", $2, $3); }' /etc/mnttab | sort
    /dev                 dev
    /dev/fd              fd
    /devices             devfs
    /etc/dfs/sharetab    sharefs
    /etc/mnttab          mntfs
    /etc/svc/volatile    tmpfs
    /lib/libc.so.1       lofs
    /net                 autofs
    /proc                proc
    /system/boot         bootfs
    /system/contract     ctfs
    /system/object       objfs
    /tmp                 tmpfs
    /var/run             tmpfs


Cheers.

-- 
Joshua M. Clulow
http://blog.sysmgr.org



More information about the openindiana-discuss mailing list