Hello there! Here’s the thing: I got some old HDD for my Debian home server, and now that I have plenty of disk space I want to keep a backup of the OS, so that if something accidentally breaks (either SW or HW) I can quickly fix it.

now the question is: which directory should I include and which should I exclude from the backup? I use docker a lot, is there any docker-specific directory that I should back up?

  • JTskulk@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 hours ago

    Here’s an edited list of what I exclude from my full system backup on my debian machine:

            <Exclude>
                <Item>/.Trash-*/</Item>
                <Item>/.recycle/</Item>
                <Item>/*.pyc</Item>
                <Item>/var/cache/apt/archives</Item>
                <Item>/tmp/</Item>
                <Item>/proc/</Item>
                <Item>/dev/</Item>
                <Item>/sys/</Item>
                <Item>/run/</Item>
                <Item>*/RecentDocuments/</Item>
                <Item>*/.cache/</Item>
                <Item>*/Trash/</Item>
                <Item>*/recentfolders/</Item>
                <Item>*/pictureCache/</Item>
                <Item>*/Crash Reports/</Item>
                <Item>*/GLCache/</Item>
                <Item>*/cache/</Item>
                <Item>*/tmp/</Item>
                <Item>/var/log/</Item>
                <Item>*/.xsession-errors</Item>
                <Item>*.swp</Item>
                <Item>/var/lib/samba/private/msg.sock</Item>
                <Item>/home/jt/.local/share/baloo/</Item>
                <Item>/home/jt/.mozilla/firefox/*/sessionstore-backups/</Item>
                <Item>/home/jt/.mozilla/firefox/*/crashes/</Item>
                <Item>/home/jt/.mozilla/firefox/*/datareporting/</Item>
                <Item>/home/jt/.local/share/Steam</Item>
                <Item>*/.thumbnails/</Item>
                <Item>*/.cache/</Item>
                <Item>*/lost+found/</Item>
                <Item>/mnt/</Item>
                <Item>/*.bash_history</Item>
                <Item>/opt/firefox</Item>
                <Item>/home/jt/.local/share/klipper/history*.lst</Item>
                <Item>*/steam.pipe</Item>
                <Item>*/recently-used.xbel</Item>
                <Item>/home/jt/.mozilla/firefox/*/storage/</Item>
                <Item>/home/jt/.local/share/kpeoplevcard</Item>
            </Exclude>