Compile 2.7.2 from source

Hi all,

I have zero experience with go, so I’m sorry for probably stupid question.

I’d like to build :d: from source, but I’m not ready to use new 3.0.1. How can I build the older version? I’m following instructions from here Installation · gilbertchen/duplicacy Wiki · GitHub - but this says nothing about versions…

If you’re not modifying source code, why not just download 2.7.2 compiled binary?

Just for the feeling of “I built it myself”, honestly :slight_smile:

Seriously, I have a compatibility concern. The thing is that I was already using self-built executable, that I’ve built sometime in July 2022 based on whatever source code it was there. I’m assuming this was 2.7.2 + some minor changes that developers added to the repository.
Now I’m adding a new machine, and I’d like to use the application built from the same source, from the same commit as I plan to use the same storage for new machine backups and don’t want to risk loosing backups from old machine, which will also continue to run backups.
Unfortunately I cannot use the self-built executable that I already have due to some incompatibility between OS (old system was using Ubuntu, and new one is Proxmox (Debian-based), so I’m getting errors related to different GLIBC versions)

It may be quite involved.

Getting the duplicacy source itself is not a problem – you can checkout by tag: GitHub - gilbertchen/duplicacy at v2.7.2

Most (all?) dependencies are frozen in the Gopkg.lock, so technically you shoudl not need anything else, but if any dependence is not there you woudl need to checkout that depency by date and rebuild.

Thanks! it may be really too involved for me… Do you think my compatibility concerns are justified, though?

I don’t know :). I would just grab the prebuilt binary and call it a day, if it works.

Are you planning to run duplicacy directly on proxmox or in the guest? The latter approach will yield better results. Proxmox is not a general purpose OS, and even though duplciacy don’t not have many dependencies, basic things like libc may be of some obscure version.

Yeah, I’ll give a prebuilt a try. I still have an old test VM and storage that I used to try duplicacy originally, so I might just put a prebuilt there and see if that old storage works fine.

I want to run duplicacy directly on proxmox host. Will see how v2.7.2 works there. v3.0.1 seems to be working, but I didn’t do much testing before realizing it still has some bugs that developers are fixing. And all this new storage format - too much risk for me.

UPDATE: No return to 2.7.2 prebuilt for me - getting error when trying to backup or restore with the storage that has been used previously with my 2.7.2 self-compiled version. If I have to start from scratch I’d rather wait for v3 to be a bit more polished.