Or softlinks, if you use the '--copy-links' option. This has two other advantages:
One: The links are self documenting. (With hard links you have to search for inodes.) Two: The sync source directory does not have to be in the same filesystem as the original files. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Matthias Schniedermeyer Sent: Saturday, November 02, 2013 1:58 PM To: Cary Lewis Cc: [email protected] Subject: Re: Is it possible to specify the destination filename for every file being synced with rsync On 02.11.2013 11:39, Cary Lewis wrote: > E.g. I have a directory with 10,000 files, and I want to sync them to a > remote server, but I want to map the source filenames to a different set of > filenames on the server. > > Is there a way to create an input file for rsync to use that specifies a > src/dst pair? AFAIK this doesn't work directly. But you could create hardlinks of your source files into another directory locally and then rsync that directory. -- Matthias -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
