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
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
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
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?
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
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
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
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
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
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
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
LEARN ABOUT CENTOS
amoverview
AMOVERVIEW(8) System Administration Commands AMOVERVIEW(8)
NAME
amoverview - display file systems processed by Amanda over time
SYNOPSIS
amoverview [--hostwidth width] [--diskwidth width] [--skipmissed] [--last] [--num0] [--togo0] [--verbose] [--config ] config
DESCRIPTION
Amoverview displays a chart showing hosts and file systems processed by Amanda along with the backup level performed each day.
See the amanda(8) man page for more details about Amanda.
OPTIONS
--config config
Use configuration config.
--hostwidth width
Set host field column width to width characters instead of 8.
--diskwidth width
Set disk field column width to width characters instead of 20.
--skipmissed
Compacts the output by only printing stats for the days Amanda actually ran.
--last
Outputs the last status of each disk at the start. Useful for long tapecycles and/or sparse reports.
--num0
Outputs the number of level 0 dumps for each disk.
--togo0
Outputs the number of runs until the last level 0 dump is overwritten.
--verbose
Amoverview can take a long while on large systems. This option reports intermediate steps while it is working.
RESULTS
amoverview is a summary of the output of " amadmin <config> find ". When the last column of amadmin find contains anything other than "OK",
amoverview translates this into "E" for that day.
A number indicates the level of backup and it succeeded. An "E" indicates an error for that day. You get an "E" for all errors, like failed
to connect, datatimeout, computer crashed, etc, but also for failing to write to tape.
You can have an "E" followed by a number if a filesystem ran into end-of-tape once (gives an "E", and later that day, you flush it to a
second tape (a number: the level, indicating success). If the flush failed too, you get a double "EE" for that day.
You can also have a double code if you have two tapes in the changer and Amanda failed to write to tape the first time because it hit end
of tape (resulting in "E0", for a full, "E1" for an incremental etc.) or twice with error ("EE"), and may a successful flush afterwards
giving maybe "EE0". (Only the latest 2 characters are printed).
EXAMPLE
This shows the /home file system on host2 was backed up at level 3 on the 8th, 9th and 10th of December, had a full backup on the 11th, a
level 1 on the 12th and a level 2 on the 13th.
# amoverview
date 12 12 12 12 12 12
host disk 08 09 10 11 12 13
host1 / 0 1 1 1 1 1
host1 /var 0 1 1 1 1 1
host2 / 1 1 1 1 1 0
host2 /home 3 3 3 0 1 2
host2 /opt 1 1 1 1 1 1
host2 /var 1 1 0 1 1 1
SEE ALSO
amanda(8), amadmin(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Stefan G. Weichinger <sgw@amanda.org>
Amanda 3.3.3 01/10/2013 AMOVERVIEW(8)