Aar
Verified User
Hi folks,
I use this bash-script in a cronjob to make a backup to an external server.
Now i have to switch to another server. Can somebody tell me how the ftp_password is hashed/encrypted?
I believe that the password that is actually in my script is not the same as the password for the FTP access.
So it must be encrypted I think.
I use this bash-script in a cronjob to make a backup to an external server.
Now i have to switch to another server. Can somebody tell me how the ftp_password is hashed/encrypted?
I believe that the password that is actually in my script is not the same as the password for the FTP access.
So it must be encrypted I think.
Bash:
#!/bin/sh
datum=`date +%u`;
`echo "action=backup&ftp_ip=123.123.123.123&ftp_username=USERNAME_HERE&ftp_password=PASSWORD_HERE&ftp_path=/$datum/&owner=admin&type=admin&value=multiple&when=now&where=ftp&who=all" >> /usr/local/directadmin/data/task.queue`