- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hello,
We are trying to backup our smartEvent using the procedure explained in in sk122655. When we run the commands manually, it work but when we include them in a bash script, it doesn't work. We receive the error 'Cannot stat : No such file or directory'. I've included a screenshot of the error. I've also attached the script. Do you guys see what could be the issue ?
Thanks in advance for your help.
Regards,
Alain
Hi, I would change the script by testing each variable's value.
For example:
echo ${FOLDER1}fwlogs.tgz $FWDIR/log/*
...just before executing the
tar zcf ${FOLDER1}fwlogs.tgz $FWDIR/log/*
Hi Xavier,
Thanks again for your help. When I follow your advise and I display my variables, they show up correctly(see below) . It seems BASH is not correctly interpretating the * sign used to say "anything". Do you agree ?
Regards,
Alain
Referring the first article I've found: did you check "your write permission to the directory from which you are executing the command"?
Thanks Xavier again for your help. No, this doesn't seem to be the problem. It works when I run the commands manually from the exact location.
Regards,
Alain
I just do not really understand why you don not create a backup folder in /var/log and create all the TGZ files there?
This way you always have 1 simple place to find your backup files in the location that has the most available storage.
Dear Maarten,
Thanks a lot for your input. I see what you mean but I thought the folder was not relevant because later in the script, the files are sent to the FTP server and then deleted.
Regards,
Alain
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 12 | |
| 10 | |
| 9 | |
| 8 | |
| 6 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY