Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./restore.sh: 49: Syntax error: "(" unexpected #1

Open
cberrit1221 opened this issue Nov 15, 2023 · 2 comments
Open

./restore.sh: 49: Syntax error: "(" unexpected #1

cberrit1221 opened this issue Nov 15, 2023 · 2 comments

Comments

@cberrit1221
Copy link

backup_files=($(ls -t "$local_directory"/*.zip))

Available backup files:
./restore.sh: 49: Syntax error: "(" unexpected

@dragonfire1119
Copy link
Contributor

I'm not getting this error. Can you provide more details, such as how you're running the commands, etc.?

@cberrit1221
Copy link
Author

So it doesn't appear the backup.sh is creating files in my instance. I am using docker if that makes a difference?

conor@tts-kuma:$ cd uptime-kuma-backup
conor@tts-kuma:
/uptime-kuma-backup$ sh ./backup.sh
./backup.sh: 48: sshpass: not found
./backup.sh: 51: zip: not found
Destination directory exists. Moving file...
conor@tts-kuma:/uptime-kuma-backup$ cd backups/
conor@tts-kuma:
/uptime-kuma-backup/backups$ ls
conor@tts-kuma:/uptime-kuma-backup/backups$ cd ..
conor@tts-kuma:
/uptime-kuma-backup$ sh ./restore.sh
Available backup files:
./restore.sh: 49: Syntax error: "(" unexpected
conor@tts-kuma:~/uptime-kuma-backup$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants