I need to set a daily backup of a specific external hard drive in iMac to a FTP server. In Windows I use a batch file but with OS X I'm a little lost.
IMac – Daily FTP backup script for external hard drive
backupftpimacmacos
Related Question
- MacOS – quick to install and set up FTP server on homebrew for OSX
- Use a large external hard drive both as installation media and backup drive
- IPhone – Export iPhone or iPad Backup to an external hard drive
- Mac – Encrypt External Hard Drive for Mac and Linux
- Mac – Time Machine not “remembering” external hard drive backup after not being connected for some time
- Mac – Is it possible to have 2 different backup systems for different external hard drives
- MacOS – Convert .bat command for mapping shared drive to AppleScript
Best Answer
You may write this script and it will work for not big number of files, but entire external hard drive backup to ftp server only using bash is a hard task. Because of possible connection problem, because of namespace problem. (Some file names on Mac ) may be impossible to store on your ftp server. If you backup small number of files ~100mb just zip them and upload with sh ftp command. But if the amount of data is large >1gb it is better to use third party software like "immortal files" or "goodsync".