I am not familure with smartFTP but ..
1. compress files in a directory
Code:
tar cvzf myarchive.tar.gz /path/to/my/folder/
creates a compressed archive of a required folder.
2. view a checksum
Code:
md5sum myarchive.tar.gz
3. upload file via FTP
create a bash shell script
Code:
#!/bin/sh
# uses ~/.netrc
echo Uploading myarchive.tar.gz, please stand by
ftp <<**
open www.myserverorip.com
cd public_html
bin
put myarchive.tar.gz
bye
**
echo Completed
note the reference to
.netrc file in the users home directory?
its horribly insecure as its just a plain text file in the form
Code:
machine www.myserverorip.com
login mylogin
password mypassword
4. check if uploaded file has correct checksum.
Well I guess you would have to download it again or ssh to the machine and run md5sum against it.
As with most linux related things this could be done numerous mays this is just the way I would do it, your millage may vary.