[ccache] Possible to merge ccache dirs?

Joel Rosdahl joel at rosdahl.net
Mon Jan 15 19:44:52 UTC 2018


On 14 January 2018 at 12:01, Michael Bazzinotti via ccache
<ccache at lists.samba.org> wrote:
> My ccache was separate for both my root user and main user account. Now, I have a shared ccache pointing to the main user's cache.
> How can I merge the root and user ccache directories?

Try something like this:

    cd ~mainuser/.ccache
    cp -a --parents ? ~root/.ccache
    ccache -c

The last step will recalculate the file counters to match the new content.

-- Joel



More information about the ccache mailing list