79740746

Date: 2025-08-20 07:28:01
Score: 1.5
Natty:
Report link

I found the answer its the cron issue or we can say path issue , problem was when i was running script manually than i was in my script directory than the encrypted file was build in the directory as i run the script.sh but in corn the working directory is by default /home/ubuntu/ and in my script the rsync have the path of my script directory so rsync cant find the file there and that make it fail so i updated script from just having file name like this

file="$data_${date}.enc"

to

loc="/home/ubuntu/scripts/automated_datasender"

file="${loc}/data_${date}.enc"

now the rsync can find the file.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: harshit Gupta