LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Bash shell script and automating FTP Backups (File Verification) (https://www.linuxquestions.org/questions/linux-server-73/bash-shell-script-and-automating-ftp-backups-file-verification-761232/)

alternaloser 10-11-2009 06:11 PM

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! :)

chrism01 10-12-2009 12:18 AM

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.


All times are GMT -5. The time now is 10:25 AM.