Renaming UNIX files for Windows
Christopher.Wood at gxs.com
Christopher.Wood at gxs.com
Fri Apr 21 17:41:49 GMT 2006
Run this on your unix side first:
for file in yourlogfiles* ; do newfile=`echo $file | tr ':' '_'` ; mv
$file $newfile; done
Then copy the newfiles to your windows server.
Alternatively, you could copy the newfiles to a temp dir
for file in file* ; do newfile=`echo $file | tr ':' '_'` ; cp $file
/tmp/$newfile; done
Chris
-----Original Message-----
From: rsync-bounces+christopher.wood=gxs.com at lists.samba.org
[mailto:rsync-bounces+christopher.wood=gxs.com at lists.samba.org] On
Behalf Of Kevin Cook
Sent: Friday, April 21, 2006 1:18 PM
To: rsync at lists.samba.org
Subject: Renaming UNIX files for Windows
I am a new rsync user and am running the client on Solaris and the
server on Windows 2000 Server utilizing Cygwin for the Linux emulation.
Unfortunately, the log files I am backing up frequently use a ':' for
date/time stamps; colons are supported in UNIX but not Windows. Without
having to recode my application, is there an easy way to have rsync
eliminate the ':' or replace with an '_' during a backup?
Thanks,
Kevin
--
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
More information about the rsync
mailing list