Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Joel shoemark on March 14, 2003, 12:16:39 AM

Title: File copy across network
Post by: Joel shoemark on March 14, 2003, 12:16:39 AM
Can anybody suggest how I can copy files from a remote network from the bash promt
Title: Re: File copy across network
Post by: Abe Loveless on March 14, 2003, 10:02:41 AM
Using what services??

You can use the "wget" command to download files via http/ftp.

You can also use "scp" (Secure Copy) to push/pull files from another machine running a ssh server.  http://www.tech-geeks.org/article.php?story=20021122155421471
Title: Re: File copy across network
Post by: Joel shoemark on March 17, 2003, 02:45:24 AM
I dont actualy want to copy files across network I wont to use tar or dump or something similar to do incemenatle backups from one server to another via a script file thats is run with crontab.
Title: Re: File copy across network
Post by: Nathan Fowler on March 18, 2003, 12:57:30 AM
http://www.e-smith.org/bboard//read.php?v=t&f=3&i=25967&t=25959

The script could be modified to process "/" or any given directory.
Title: Re: File copy across network
Post by: Joel shoemark on March 18, 2003, 01:25:56 AM
Nathan, This is just what I need but I need my back directory to be on a remote server and I dont know how to addresss or access it
Title: Re: File copy across network
Post by: Nathan Fowler on March 18, 2003, 01:31:36 AM
Where is the remote server located, is it across a WAN or LAN pipe?  What OS is it running?
Title: Re: File copy across network
Post by: Joel shoemark on March 18, 2003, 01:42:22 AM
Across WAN and both servers are SME I have ssh, telnet and FTP access as both servers are setup that the remote networks are local
Title: Re: File copy across network
Post by: Nathan Fowler on March 18, 2003, 01:47:11 AM
Lets take this into private email, use my email address in the header.

If you have SCP enabled, you may be able to do it, however, you will need to create the .tgz locally and then transfer remotely, so this means you would require additional space on your SME box to handle this temporary status.

If you have Samba on the remote box, we could mount via SMB and x-fer it that way, that's the way I do most of my backups.
Title: Re: File copy across network
Post by: Joel shoemark on March 18, 2003, 02:06:07 AM
yes I have samba running on both servers but if I use scp I  have to copy the complete tgz of about 2.5GB which may take Hours so I want to do one full backup and then just do incremental backups nightly