File Transfer & Email
Objective
Hands-on practice with file transfer & email in a Linux environment.
Tools & Technologies
scprsynccurlsendmailmutt
Key Commands
rsync -avz --progress src/ user@host:/dest/curl -F '[email protected]' https://api/uploadecho 'body' | mail -s 'Subject' user@hostLab Steps
01
rsync Incremental Sync
Use rsync with --delete and --exclude for efficient backups over SSH.
02
curl File Upload
Upload files to web APIs using curl with multipart form data.
03
Sending Email from CLI
Configure and send email from the command line using sendmail and mutt.
04
SFTP Session
Use sftp interactively to browse and transfer files securely.
Challenges Encountered
- rsync deletes destination files not in source when --delete is used
- sendmail requires proper MTA configuration
Key Takeaways
- rsync's --dry-run flag previews what will change
- Always test email delivery to spam folders