[NTLUG:Discuss] Copying a file to TWO destinations as the same time..

steve sjbaker1 at airmail.net
Sun Jan 29 10:12:39 CST 2006


Stuart Yarus wrote:
> If you really want to use tee, try:
> 
>    cat file | tee location1 | tee location2 | tee location3
> 
> This method uses the original file just once.  The method certainly 
> isn't recommended for many or for large files, due to the use and 
> duplication of stdout (standard output).

It's also hopeless for backups because all information about the
ownership, file permissions, timestamps and (possibly) file 'gaps'
will be lost.

> Your backup method should depend on the nature of the backup.

Indeed.




More information about the Discuss mailing list