Using a bash script to ftp a file in a cron job. The file transfer works when the path to the file is relative, but when I use an absolute path the ftp program can't find the file. What am I doing wrong? I assume that it has something to do with the permissions?
Script is: encrypted_output_file=/var/www/vhosts/domainx/backup/backup.tgz HOST=some.host.com USER=username PASS=password ftp -inv $HOST << EOF user $USER $PASS cd backups/here/ bin put $encrypted_output_file close bye EOF