FTP from one unix server to another and add date extension to file
I have a problem where I'm backing up a file by using ftp to transfer from one unix server to another. This is going to be done every night so when the file is moved I need the date extension to be added to the file so that it doesn't overwrite the previous nights backup. So far I have:
#copy from live to processing directory then compress
cp /live_directory/abrtest /process_directory/
expect_version -exit 5.24.1
set file [lindex $argv 0]
set file1 "000001"
set timeout 1200
#create a new ftp session and put the file on the test server
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.