The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Facing problems when FTPING file from server to local (Very Urgent) sunitachoudhury Shell Programming and Scripting 3 04-01-2008 03:41 AM
Script for FTPing files to mainframe GDG dsrookie UNIX for Dummies Questions & Answers 1 03-13-2008 09:32 AM
removing files after ftping im_new Shell Programming and Scripting 5 02-26-2008 02:59 AM
Tar file from Linux server to PC for backup zp523444 Filesystems, Disks and Memory 8 01-19-2007 03:44 AM
Backup user from one server and restore to another fidodido UNIX for Dummies Questions & Answers 1 04-22-2006 12:03 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-04-2002
fredlucas3 fredlucas3 is offline
Registered User
  
 

Join Date: Sep 2002
Posts: 2
FTPing backup files to another server

I am running a hot backup of my database every night within our cronjob. Recently I got burned because the tape which holds my backups became corrupt. I am setting up another Sun box to hold my backups as well as writing them to tape. I know dumb error on my part. My question is what will I have to do to automate the ftp action to move the backup file to the backup server every night with some sort of script or command? I would like to have this done by the machine. I am not a Unix guru and would like some help if anyone has any ideas on this. Thanks for the input!
FRL
  #2 (permalink)  
Old 10-04-2002
giannicello giannicello is offline
Registered User
  
 

Join Date: Sep 2001
Location: Phoenix
Posts: 169
There's some samples out there that can help you if you do a search on 'automate ftp', etc.

This is relatively easy to set up so you shouldn't have any problems. If you have some problems after you tried out some scripts then let us know.

Gianni.
  #3 (permalink)  
Old 10-04-2002
fredlucas3 fredlucas3 is offline
Registered User
  
 

Join Date: Sep 2002
Posts: 2
I have found a script and tried it to no avail. I get the following error.

Warning: tcgetattr failed in ssh_rl_set_tty_modes: Inappropriate ioctl for device

I got the following script from this site and used it. I got it to ask for my password but that isn't what I'm aiming for. I need this thing to run at night on it's own. And it asked me for my root password not the password for the user I specified in the script. I know what all the lines are for except the first and the 5th (lcd....). Can someone explain what those are doing for me. I think I'm on the right track, just need some more directions.

sftp IP ADDRESS<<end
user uname pword
cd /security1
bin
put filename
bye
end
  #4 (permalink)  
Old 10-04-2002
WIntellect's Avatar
WIntellect WIntellect is offline
Registered User
  
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
If you use tar you can backup remotely:

tar -czvf machine_name:/home/user/backup.tar.gz /dir2/backup

  #5 (permalink)  
Old 10-04-2002
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
Quote:
Originally posted by WIntellect
tar -czvf machine_name:/home/user/backup.tar.gz /dir2/backup
Is this the equivilent of the Win32 SMB \\servername\sharename method of accesing a sub-dir or file without mapping a drive?

I reckon tonight Iwill have to see if I can get from my OpenBSD to my FreeBSD machine this way. I use the \\servername all the time at work and would like to be able to do similiar under Unix.
  #6 (permalink)  
Old 10-04-2002
WIntellect's Avatar
WIntellect WIntellect is offline
Registered User
  
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
I got that tip from man tar - however, whenever I try to use it I get an error about being unable to access the archive - I presume I need to setup some form of allowance on my FreeBSD box?

Any ideas which file?
  #7 (permalink)  
Old 10-08-2002
kymberm kymberm is offline
Registered User
  
 

Join Date: Mar 2002
Location: Texas
Posts: 120
tar across network

would tar -czvf machine_name:/home/user/backup.tar.gz /dir2/backup work across network for linux/unix boxes, to the tape drives?


tar -czvf machine_name:/dev/rmt/st0/backup.tar.gz /myhomedir/


would this work?
Closed Thread

Bookmarks

Tags
inappropriate ioctl for device, linux

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0