I have 27 containers running with rancher on windows. Long story short, I’m tired of the resource use and stress on my machine by running the VM. My data folders are split up by duty (admin, utility, media, virtualization) each duty has its own folder, containing the services’ folder with data/config directories and one compose.yaml file for those services. All the compose files are connected to a master compose file in the parent directory that starts all of them. My compose files have references to the media hdds that are defined with an .env file next to the master compose.

I need to clone my docker setup to a Debian install I’ve been working on on its own ssd. I’ve been screwing with Linux unsuccessfully for almost 20 years, so my cli is weak. I’m looking for a tool that will clone my volumes and containers.

What do you use?

  • carrylex@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 hours ago

    I’m looking for a tool that will clone my volumes and containers

    ???

    Assuming you’re using docker compose because not doing that when running 27 containers would be insane:

    • docker compose down
    • Copy all stuff over
    • docker compose up
  • Botzo@lemmy.world
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 days ago

    rsync

    Built-in, picks up where it left off if you accidentally cancel it by running the same command again, and dead simple.

    Permissions for the files will probably be a little broken moving to Linux, but chmod is also easy to use and can work at the directory level.

      • confusedpuppy@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        18
        ·
        2 days ago

        I too was upset with the use of Claude/AI/LLM’s in the rsync project. The maintainer received a lot of public backlash and as a result people have offered their time to help the maintainer with this project.

        Since the backlash, the use of agents has been drastically reduced. That seems like a very human and overall positive response. It sucks that it happened. It’s nice that people are now doing the work again. The response could have been a lot worse. I can be forgiving in this specific situation.

        • lambalicious@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          6
          ·
          2 days ago

          Oh! I might check up how the repo is doing during the weekend, might merit an upgrade once the next major (3.5 if I’m getting my numbers right) comes around.

      • frongt@lemmy.zip
        cake
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Fuck’s sake. What was the actual bug introduced? I skimmed the issues on GitHub and nothing jumped out at me.

        • lambalicious@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          1
          ·
          2 days ago

          I don’t remember the exact bug but just search for “data loss” and/or “changed behaviour”, either it wil come up or the devs have been whitewashing their inclusion of AI and censoring discussions.

          • frongt@lemmy.zip
            cake
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 day ago

            I don’t see it, but I do see plenty of criticism of the use of claude.

            I searched issues for “compare-dest”, which seems to be the part they were complaining about being broken, and I didn’t see any issues that looked relevant. I also looked through the commit log between 3.4.1 and 3.4.3 for anything mentioning that option and didn’t see anything there either. So right now it just looks like fearmongering to me.

          • moonpiedumplings@programming.dev
            link
            fedilink
            English
            arrow-up
            6
            ·
            1 day ago

            Debian has a policy of only cherry picking security updates, or critical bugfixes, in order to ensure maximum system stability. In general, they don’t do entire program updates or additional features. For the 4 year lifecycle of a Debian release, it will behave the same as it did yesterday.

            As of today, current version of rsync in Debian’s stable’s packages is 3.4.1: https://packages.debian.org/stable/rsync (archive).

            The versions with significant LLM assistance are 3.4.3 and later.

            • lambalicious@lemmy.sdf.org
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 day ago

              Their comments on the bug tracker issue regarding staying on non-AI versions are however rather worrying, and they’ve ignored the issue completely, burying their heads in the sand.

    • frongt@lemmy.zip
      cake
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 days ago

      This. Docker compose down, schlep the data over, update paths and permissions, docker compose up. Done.

      Probably bring it up one step at a time so you can more easily identify anything you missed.

    • Botzo@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      If you need to change the references in the compose or env files:

      • use sed to replace text in .env
      • use variables and interpolation in compose
  • DeltaLima 🐧@social.la10cy.net
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    2 days ago

    @horus_son_of_isis I can’t tell you a tool for migrating. But for managing Docker / Podman container under linux, i really like #Dockhand . Many describe it as the better #Portainer (i havent used portainer, so i cant tell)
    But I think for that you would need to adjust your current setup (as i understood one compose file “manages” other compose files) and split them up.