[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: backup/ftp



netbeats forced the electrons to say:
> Hi!!
> 
> I have two Linux m/c and one is running short of disk space. I want to ftp
> all files from a user account in m/c 1 to user account in m/c 2. 
> 
> I want to maintain all the permission, directory structure ... etc
> I dont even have enough space to tar/gzip and then ftp to second
> m/c and then extract the directories/files.
> 
> Some ftp sites allow gzip on the fly how do i do that? Can i do tar and
> gzip on the fly when I use ftp and then extract the directory and files on
> m/c 2?

The easiest way to do this is via ncftp and the -R option to its get command.

You can also nfs mount one of the machines on to the other and cp -r the
entire directory tree.

Also, gzip/gunzip accepts a flag -c to write to/read from stdout/stdin,
so that you don't have to write compressed data onto disk, but use a
filter to process it.

For tar on the fly, something like

tar cf - dir1/ | ( cd target; tar xf - )

should work. If dir1 is on the first linux system, and dir2 on the second, and
if you are using nfs mounting, your problem is solved.

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------