Wildcard Question

Posted by Greedisgood, 07-06-2007, 08:47 AM
Hi, I was wondering if an expert could confirm if this line would work. As it seems the server is taking that * as a character, not as a wildcard. What would be the proper character for a wildcard symbol? Thanks

Posted by foobic, 07-06-2007, 10:03 AM
I don't think you can give tar multiple input files like that, but I guess you could use the --append function in a loop. A simpler option would be to avoid using $date in the filenames - instead create a directory called $date, dump each database in it as dbname.sql and then tar/gzip the directory.

Posted by Linuxsurgeon, 07-06-2007, 10:34 AM
You can use for this.

Posted by mr_brain, 07-07-2007, 10:04 AM
I think it ist better to use the full path: tar -zcvf sqldata.$date.tgz /DIRECTORY/*.sql

Posted by anatolijd, 07-07-2007, 10:29 AM
tar works perfectly, but $date is not defined (rather is ok)

Posted by Linuxsurgeon, 07-07-2007, 10:47 AM
Have you tried

Posted by Greedisgood, 07-18-2007, 02:13 AM
Weird, this still isn't working for me. I've done a mysql dump on one of my databases, and placed the .sql file inside /sqldata This is what I keep getting: Could somebody help me?

Posted by Patrick, 07-18-2007, 02:20 AM
I just tested that and it worked fine... can you confirm that the .sql file is present in that directory?

Esta resposta lhe foi útil?

 Imprimir este Artigo

Veja também

CACTI with cPanel

Posted by hosteur, 05-07-2007, 07:29 AMMy other box gear by DedicatedPlace and they guys still...

Problem with downloading XML file

Posted by Luka, 01-16-2008, 12:00 PMHello, I have a script that makes XML file with DOM , stores...

Sanitize issues i think

Posted by rumrunner439, 09-22-2008, 12:22 AMOk Im over having to rename everything in my computer...

Unable to change the file attribute

Posted by tuxican, 09-14-2007, 12:09 PMHi all, I am not able to change the attribute of a...

Database design question: Indexing

Posted by phoqoo, 01-15-2008, 12:38 PMFrom what I've read, indexing columns helps optimize DB...