🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux
Article #907786

rsync i softlinki

#907786
From: Marcin Debowski
Date: Sat, 07 Sep 2024 03:06
23 lines
1478 bytes
Jak przekopiować strukturę katalogów wączając w to:
- same katalogi
- softlinki do katalogów
- bez plików

kombinuję tak:
rsync -rv -l -K --copy-unsafe-links --include='*/' --exclude='*' source dest

I jedyne co mi się udaje to przekopiować softlinki jakby był katalogiem 
co w zasadzie powinno wystąpić ale przy -k. Wygląda, że 
--copy-unsafe-links zawsze wymusza -L -k (nawet bez tych 2ch), a bez tej 
opcji nie kopiuje linków. 

Mogę zrobić gołe
rsync -arv --include='*/' --exclude='*' source dest

a potem
find subsource -type l -exec cp -avr --parents {} . \;

ale może da się samym rscync'em?

-- 
Marcin
Technical Details
Message-ID: <IqPCO.9824$xaR4.7104@fx01.ams1>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!dummy01.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!feeder.cambriumusenet.nl!feed.tweaknews.nl!posting.tweaknews.nl!fx01.ams1.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!dummy01.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!feeder.cambriumusenet.nl!feed.tweaknews.nl!posting.tweaknews.nl!fx01.ams1.POSTED!not-for-mail
Newsgroups: pl.comp.os.linux
From: Marcin Debowski <agatek@INVALID.zoho.com>
Subject: rsync i softlinki
User-Agent: slrn/1.0.3 (Linux)
Mime-Version: 1.0
Lines: 23
Message-ID: <IqPCO.9824$xaR4.7104@fx01.ams1>
X-Complaints-To: abuse@tweaknews.nl
NNTP-Posting-Date: Sat, 07 Sep 2024 03:06:16 UTC
Organization: Tweaknews
Date: Sat, 07 Sep 2024 03:06:16 GMT
X-Received-Bytes: 1212
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit