delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/08/07/16:26:42

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 935DD385828B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1723062399;
bh=MmKoZyQLxATFjm/A86dt1aeO945HuW2jKLFHbdWBMbc=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=veVpQGVQgEBP6iODweC2zbPa5JXrgUKPlKOr3Ag6oMUT4u0EemsF8D+aq8ETTxpmv
fjDs1Lv0qHHYLqeA72A6yrsyxeWOrgmHfCbjtPAns3ypz91IcktY9290Q4709FaZYi
AO1jA8HLrp856xlNHcDv2C1L1cSkxMaq/zTmo9ag=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B45533858C41
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B45533858C41
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723062377; cv=none;
b=aiflR8VjWYmXDBWq3DgtXtVLgyQyYtwxZF9rqjQdlAuYLJEWOzaEwSelmiOUOr09O4fphg5HI2WdPsRtJ0welX5DT4F23r/rIOOY8Bp4pyHsPuz7lPlpw98zHtrhoSSjFYZJv8dnLP5KcEnPqwbvfw9JanaVqQt0jrIIBzYQ5eU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1723062377; c=relaxed/simple;
bh=ZyMmCmFjCz/gEGfhKU6pHBWZ6s5KRC1N0wmJZy/7WIE=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=YU/Xo+mkJGlMLZa8aHkbmqkl8Prl99rfAWq/KbuJS4/q2gkr8UiXDtlGb0tdihkGzaCCoUBK1HhavVj3kBa9aTo9nvubbX1NZUH0Zia3Hm8JCOwTbonBcLGsoobhKzGFmiRGiq/9qddDq8xkJJ43VClTFShK1+6rUCZxxCFHmCk=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1723062375; x=1723667175;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=ZyMmCmFjCz/gEGfhKU6pHBWZ6s5KRC1N0wmJZy/7WIE=;
b=Itvnsty/m7hqCDYE7ZA8zgiDy/V3nwlWLIj53CpnXo+y7CW+mfxcYeiE9e4cwhltR6
8+HPX88er9fhGaC9dtEBdo9rLmErE6oSfGOUsxb6NmpgRaSA8EL99Orwj+vc8g9i5SAe
cSwABGnvIEnRx3vWR7i//HMIafEMJprs1snU2Qyv849Fcqs1dKpxghCTrjkiZBCbYke5
bYGVpMlvflhkuDTPVExqSxTQdJ7ubMx6NXXDP6D0v7lbiUM0040nJdjam+iM6o0ZRuEb
EnNT+BDKDJ8g/iAInhzhYSPaYAGo9avWS4EnpC0bmq/yhjC4vvIcasCELfdpLZpOcNVT
Zhxw==
X-Gm-Message-State: AOJu0YxPHgknvNdwrwZ+aiiZg97HYh5r/9Mu71c1g6kBxnJEz75tV0dQ
bp9F9prcTGFqodR9tzN6B3qmxXS+Ss+YJJkCoujSJSmtDFDdbescjeSqfi8jBTpGGXcPet2nP9i
cJx9vTXfemsWHtMfCnHzy4TmvvCqnDw==
X-Google-Smtp-Source: AGHT+IHDTl+camqQMmwTzTT+skMjMpmhcGe8xGfCs3chcKhAedotFZdYxX6wQTAIChPz6cWPJ2Pcqf2bwVlNL0lbMlo=
X-Received: by 2002:a05:6102:cca:b0:48f:e759:94bc with SMTP id
ada2fe7eead31-4945be43ffamr17403944137.16.1723062374717; Wed, 07 Aug 2024
13:26:14 -0700 (PDT)
MIME-Version: 1.0
Date: Wed, 7 Aug 2024 13:26:02 -0700
Message-ID: <CAA5t8VrKKr8BJ92Tz5hZoPPoGmz0nPG9b_14LroRBx-nWbDxAg@mail.gmail.com>
Subject: How to repair the symlinks in a copied cygwin64 tree
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: David Karr via Cygwin <cygwin AT cygwin DOT com>
Reply-To: David Karr <davidmichaelkarr AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

At my work, I had to have my laptop reimagined for various reasons. I had
them save my cygwin64 tree to external storage first. I now have the laptop
back, and I copied the entire tree back in, but now I realize I should have
done this differently, and I'm wondering how best to repair this. Some of
you can probably guess, but now all of the files that were symlinks in
Cygwin are now very small data files. I can tell they used to be symlinks
because when I cat one, it shows "!<symlink>" in the first characters.

What is the best strategy for repairing this? The most simple-minded
approach that I can see is simply renaming the cygwin64 tree to get it out
of the way, and then just reinstalling Cygwin, and then copying in all the
files in my cygwin home directory in the saved tree. I will likely guess
wrong on what packages I had installed before. Is there some way I can
simply repair the symylink files directly?

Besides the symlink problem, is there anything else that I might have
broken by doing it this way?

I'm guessing the correct way to have done this would have been instead
storing the "tar czpf" output in external storage. I think that would have
preserved the symlinks and restored them properly with "tar xzf".

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019