UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 9th, 2004, 02:44 PM
Nittany Nittany is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 Nittany User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Crontab to move file between servers?

I've got two UNIX platform servers. On server "A" I have created a crontab to backup my entire web site root directory to a .tar.gz file which it saves into my user home directory on a regular basis. Now I want to figure out a way to move that backup file to server "B".

The two servers have different IP addresses from each other in case that matters.

I had a tip I found along the line which used a 'wget' command to do this from server "B" but I could not get that to work. My server says it did not recognize the command.

I tried to create a cron job on server "A" using something like

0 0 * * 0 mv /usr/home/user/backup.tar.gz 123.123.123.123/backup.tar.gz

<Where '123.123.123.123' is the IP address of server "B">

If I run this from command line I get a return that says there is "no such file or directory". I believe that is referring to server "B" not the origin server "A". I can see that the file does exist on server "A" right where I specified it to be.

I am obviously missing something here or it just is not to be done.
Is there a way to do this??

Reply With Quote
  #2  
Old November 10th, 2004, 12:50 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,077 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 13 h 40 m 11 sec
Reputation Power: 8
no chance to do that this way
- be sure the sys are connecting
- use ssh or scp or a kind of ftp in batchmode

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Crontab to move file between servers?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway