Sponsored Content
Top Forums Shell Programming and Scripting Script to upload latest file to other server via FTP Post 302605153 by Corona688 on Tuesday 6th of March 2012 06:02:40 PM
Old 03-06-2012
The ls -t | head -n 1 will always output only one file, while your find code could mess up and do two uploads if you happen to force a manual backup or somesuch one day and end up with two files on the same day.
Quote:
Originally Posted by nbsparks
Any chance you could do a pastebin of your latest suggestion? I'm not sure the <<EOF thing is where you say it's supposed to be. Just want to be sure.
The code's exactly as I have it written. It's the ending eof that has to be on the beginning of the line, not the beginning <<EOF -- that's supposed to be right after the command, where I have it. Copy-paste it and it'll be correct.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to ftp latest file

Hello All, Hope u r doing fine. I'm writing a shell script to ftp the latest file having pericular convention as 'ULTI_15072007043205.txt' on daily basis. Now the date & timing of the file geleration isnt constant, so the file name daily varies as per the date & timing of generation. Can anyone... (7 Replies)
Discussion started by: im_new
7 Replies

2. Shell Programming and Scripting

ftp put in shell script -- whole file doesn't upload

Hi I'm having some trouble with a bash shell script that I'm writing. In the script, I'm trying to upload a file to a backup repository using ftp, but the whole file doesn't get uploaded. This is the file's properties at the start (I've highlighted the file size in red): -rw-r--r-- 1 root... (2 Replies)
Discussion started by: Viola
2 Replies

3. Shell Programming and Scripting

bash script for ftp-upload is not working

Hello everyone, sorry for the title, most of you must getting sick of reading something like this, but I haven't found a solution, although I found many threads according to it. I'm working on a bash script that connects to a network printer with ftp where I want to upload a pdf created... (3 Replies)
Discussion started by: le_mae
3 Replies

4. Shell Programming and Scripting

How to FTP the latest file, based on date, from a remote server through a shell script?

How to FTP the latest file, based on date, from a remote server through a shell script? I have four files to be FTP'ed from remote server. They are of the following format. build1_runtime_mmddyyyy.txt build2_runtime_mmddyyyy.txt build3_runtime_mmddyyyy.txt buifile_count_mmddyyyy.txt ... (9 Replies)
Discussion started by: imran_affu
9 Replies

5. Shell Programming and Scripting

Curl ftp upload success but no file exist on the server !!!!

hello, I'm trying to upload a file to this ftp server and others ftp://ftp.byethost12.com as you can see in the output of CURL using the -v option curl reports that the upload succeeded but when i connected to the server with file-zilla there is no file uploaded the same command upload files... (5 Replies)
Discussion started by: laraaj
5 Replies

6. Shell Programming and Scripting

Find files and upload to FTP Server

HI, I need a script to find new files that created after 6:00 from /home/ugh /demo/conn /UAT/d01 and upload them into ftp server according to system date: Please help me (1 Reply)
Discussion started by: refra
1 Replies

7. Shell Programming and Scripting

Download latest file via ftp server unix through shell script

Hello this is my first post in this forum , I dont want to be unhappy.. I am writing one script but facing difficulty to find the latest file with some new pattern My requirement is 1. The file is coming like "ABCD-23220140303" at FTP server once in a week. 2. script will run on daily... (3 Replies)
Discussion started by: ajju
3 Replies

8. Shell Programming and Scripting

FTP in shell script and selecting files for upload

Hi, Im a newbie with programming and shell scripting. Im running OSX/Mac and Darwin. I would like to create a shell script that would : 1. Search a Volume and directory (including subdirectories) for a file that : * filename ends with ”_Highres.pdf” and * the file creation date of... (8 Replies)
Discussion started by: NickeZ28
8 Replies

9. Ubuntu

FTP script to get latest file from server

Hello people, I have to download, with a scheduled script, the latest file from an FTP server. In the remote DIR, named .../TEKNONET/60468/, every night a CDR file like this gets uploaded into it: 000006046820151122N001.CDR, so my script will have to download every day the previous day... (12 Replies)
Discussion started by: virtus96
12 Replies

10. Shell Programming and Scripting

Upload latest file to ftp

Hi, I want to create a script that parses the content of a file (on each line there is a filename with full path containing the latest fiels created on that day) and uploads every file to a ftp location. Any elegant way to do it ? (4 Replies)
Discussion started by: liviusbr
4 Replies
ONEDB(1)					  onedb(1) -- OpenNebula database migration tool					  ONEDB(1)

NAME
onedb This command enables the user to manage the OpenNebula database. It provides information about the DB version, means to upgrade it to the latest version, and backup tools. OPTIONS
-f, --force Forces the backup even if the DB exists -b, --backup file Use this file to store SQL dump -v, --verbose Verbose mode -h, --help Show this message -V, --version Show version and copyright information -s, --sqlite file SQLite DB file -S, --server host MySQL server hostname or IP. Defaults to localhost -P, --port port MySQL server port. Defaults to 3306 -u, --username user MySQL username -p, --password pass MySQL password. Leave unset to be prompted for it -d, --dbname dbname MySQL DB name for OpenNebula COMMANDS
o backup [output_file] Dumps the DB to a file specified in the argument valid options: force o version Prints the current DB version. Use -v flag to see also OpenNebula version o history Prints the upgrades history o restore [backup_file] Restores the DB from a backup file. Only restores backups generated from the same backend (SQLite or MySQL) valid options: force o upgrade [version] Upgrades the DB to the latest version where <version> : DB version (e.g. 1, 3) to upgrade. By default the DB is upgraded to the latest version valid options: force, backup ARGUMENT FORMATS
o file Path to a file o range List of id's in the form 1,8..15 o text String April 2012 ONEDB(1)
All times are GMT -4. The time now is 08:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy