2 GiB file limit and pipes

Jerry Feldman gaf at blu.org
Wed Oct 31 13:52:38 EST 2001


How about cp -R or rsync;
rsync [ options ] <source> <target>
I normally use this accross systems, but try:

rsync [ options ] /old_volume_root new_volume_root
This will copy old_volume_root including the name of the directory to 
new_volume_root.
rsync [ options ] /old_volume_root/ new_volume_root
This will copy the contents of old_volume_root to new_volume_root 
without copying the directory itself. 

rsync -az tarnhelm:/home/gaf asgard:/home/gaf
This will copy my home directory and contents from Tarnhelm to Asgard, 
and will create /home/gaf/gaf
rsync -az tarnhelm:/home/gaf/ asgard:/home/gaf
This will copy my home directory and contents from Tarnhelm to Asgard, 
but will not create the additions gaf directory. 
Depending on the options you can use this to keep two directories in 
sync. 


On 31 Oct 2001, at 12:19, E. Wiliam Horne wrote:

> Thanks for reading this: I've another question about the 2 GiB file size
> limit in ext2.
> 
> I'm copying files from one ("old") disk to a new volume, and I'd like to
> use TAR to do it, but I've run into the 2 GiB file limit.
> 
> Jerry Feldman showed me a method to use TAR with a pipe (thanks,
> Jerry!), and I need to know if it would be subject to the same limit.
> 
> In other words, if I do 
> 
> tar cf - <old_volume_root> | tar xf - <new_volume_root>, would that
> avoid the 2 GiB barrier?
> 
> TIA.
> 
> Bill Horne
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss


Jerry Feldman <gaf at blu.org>
Associate Director
Boston Linux and Unix user group
http://www.blu.org



More information about the Discuss mailing list