I ran the following command to
zip all files starting with
db- and ending with
zip /var/www/html/db-$(date +\%F-\%T).zip /var/www/html/^db-*.sql
Yet I get:
zip warning: name not matched: /var/www/html/^db-*.sql
zip error: Nothing to do! (/var/www/html/db.zip)
As I used a caret to match all starting with
db-, and than added in
*.sql in the end to match all ending with
.sql, I don't understand my mistake.
I tried other variations with
^ but all failed with a similar error.