![]() The date folder is created by the first server that runs the backup script which works always, so the command is correct and it indeed creates the two folders recursively. The mkdir FTP command says "No such file or directory" which is BS, as it should create it. When it is triggered automatically it lies on some machines always and on some machines never. Local: remote: Ģ27 Entering Passive Mode (172,16,241,11,246,63)ģ77565560 bytes sent in 15.18 secs (23.7268 MB/s)Īs mentioned when I run the script from my shell then it always works. The FTP log of a server that lies: Connected to 192.168.1.1. As mentioned all the servers and backup scripts are identical. On other servers the files are put into the FTP root directory. On some servers the files are actually put into the folder with the server name. So goal is to create on the backup server a folder for each day and within a folder for each server. # files to backup are created within the created folder When I run the script from my SSH shell then it works perfectly fine as intended. The lie No such file (or directory) is only made when started by Ansible or cronjob. All servers are identical, but the FTP program works on some machines and on some other machines it lies. The backup is triggered either by Ansible (or for testing purposes via a cronjob). I'm doing backup via a shell script on multiple machines and uploading the files to a FTP server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |