LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-11-2009, 06:11 PM   #1
alternaloser
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Bash shell script and automating FTP Backups (File Verification)


I have written a slick little script that creates rolling daily backups for my web server and it then uploads them to an FTP server. The problem I'm having is verification. Is there a way using FTP that I can verify the file size matches the local file size? I figure this way I can automate an email confirmation when it has completed successfully. I am stuck using an FTP server for backups, but I can install other FTP tools like ncftp if they will help. Let me know what you guys think. I have been reading this forum for a long time and there is so much knowledge out there!
 
Old 10-12-2009, 12:18 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
According to this http://ss64.com/osx/ftp_options.html, the remote 'dir' cmd should produce the equiv of 'ls -l' if the remote is a *nix system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP in a Bash Shell Script redirection sleepyhomme Programming 2 05-02-2007 11:53 AM
Automating FTP upload via a shell script? Spitty Programming 5 01-16-2006 10:28 PM
Trouble when automating ftp with shell script hari_s_82 Linux - Newbie 2 09-23-2004 02:17 AM
FTP Script (Automating) noodle123 Linux - General 2 10-16-2002 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration