Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Find symlinks, or what should be symlinks...
- Date: Tue, 22 Apr 2014 21:06:38 +0900
- From: Darren Cook <darren@example.com>
- Subject: Re: [tlug] Find symlinks, or what should be symlinks...
- References: <5356243D.5090405@dcook.org> <CAKXLc7dNL7w-ieKrBPPip55K7LadMHHH2S+Xag9fwEVqC217kw@mail.gmail.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
Thanks Kalin, Jens, Travis, for the replies. > `rsync -HavPS --delete FROM:dewdwe/ TO:/dwedwe/` I tried this (experimenting with just one sub-directory tree), and it didn't work - it copied over all files again, but also left behind the original file, rather than creating a symlink (even though it said it was copying a symlink on the source side!) I then decided to just do the copy again, fresh, using this: rsync -avz --safe-links SRC DEST Well, I just learnt something very important about rsync, as some symlinks within the directory tree got copied, some didn't (*). Poking around, the ones that worked were relative (../../path/to/elsewhere), while the ones that didn't get copied used an absolute path in the symlink (/home/darren/path/to/elsewhere). (For the above-mentioned test I was using a directory that used absolute paths, so it might have done the Right Thing with relative paths.) Darren *: It is telling me the symlinks that fail, so I think I can come back and get a list afterwards, and will fix them by hand. With a relative path!! -- Darren Cook, Software Researcher/Developer My new book: Data Push Apps with HTML5 SSE Published by O'Reilly: (ask me for a discount code!) http://shop.oreilly.com/product/0636920030928.do Also on Amazon and at all good booksellers!
- Follow-Ups:
- Re: [tlug] Find symlinks, or what should be symlinks...
- From: Kalin KOZHUHAROV
- References:
- [tlug] Find symlinks, or what should be symlinks...
- From: Darren Cook
- Re: [tlug] Find symlinks, or what should be symlinks...
- From: Kalin KOZHUHAROV
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Find symlinks, or what should be symlinks...
- Next by Date: Re: [tlug] Find symlinks, or what should be symlinks...
- Previous by thread: Re: [tlug] Find symlinks, or what should be symlinks...
- Next by thread: Re: [tlug] Find symlinks, or what should be symlinks...
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links