Comment 4 for bug 1652975

Revision history for this message
Tony George (teejee2008) wrote : Re: [Bug 1652975] Re: different dir is used for backups after docker is installed

I'm merging the features of Timeshift BTRFS into Timeshift so that users
can select between Rsync and BTRFS snapshots. It will take few weeks to
finish and test the changes.

BTRFS snapshots will be the better option for docker as it does not
duplicate files and creates a perfect copy of the file system.

Thanks,
Tony

On Dec 29, 2016 6:35 PM, "Mateusz Czapliński" <email address hidden>
wrote:

> For the time being, I seem to have found a workaround: immediately after
> installing Docker, I issue the following command:
>
> $ sudo ln -s /timeshift /var/lib/docker/aufs/timeshift
>
> and TimeShift seems to correctly detect the old snapshots then. (Note:
> For the record, I still keep /var/log/docker/*** in excludes in
> /etc/timeshift.json, as I don't want Docker images in snapshots.)
>
> Regarding your note: do you expect to trickle the aufs exclusion into
> timeshift's ppa soon-ish, or rather as a part of some larger update at
> some further point? Not pressing for me now that I found a workarkound,
> but still curious, if it's ok for me to ask. Thanks!
>
> --
> You received this bug notification because you are subscribed to
> TimeShift.
> Matching subscriptions: timeshift-bugs
> https://bugs.launchpad.net/bugs/1652975
>
> Title:
> different dir is used for backups after docker is installed
>
> Status in TimeShift:
> New
>
> Bug description:
> After installing docker (on Ubuntu 16.04 LTS), timeshift switches to
> using directory '/var/lib/docker/aufs/timeshift/' for keeping
> snapshots, instead of normal '/timeshift/' (and doesn't see old
> snapshots anymore).
>
> Most probably, that's because docker registers a new mount point at
> /var/lib/docker/aufs path for the same device as / - e.g. my
> /proc/mounts (apparently loaded by Device.vala) has the following
> entries, in order as shown:
>
> $ cat /proc/mounts | grep vg-root
> /dev/mapper/ubuntu--vg-root / ext4 rw,relatime,errors=remount-ro,data=ordered
> 0 0
> /dev/mapper/ubuntu--vg-root /var/lib/docker/aufs ext4
> rw,relatime,errors=remount-ro,data=ordered 0 0
>
> Please note I've excluded /var/lib/docker/*** in /etc/timeshift.json,
> otherwise this resulted in endless recursion, exhausting all available
> disk space on the device.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/timeshift/+bug/1652975/+subscriptions
>