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?

آیا این پاسخ به شما کمک کرد؟

 پرینت این مقاله

در همین زمینه

IE 6.0 and style.display

Posted by jon31, 03-23-2007, 05:14 PMHey folks, I'm working on some cool little AJAX scripts,...

Editting the default web page using SSH

Posted by MrDGOrman, 03-09-2010, 09:44 AMThis might be in the wrong section - if so, ma bad....

brand new cpanel issue

Posted by ub3r, 01-15-2008, 12:24 AMWe got this email tonight, thought i'd share along with the...

Emails sent with PHP often end up in spam/junk folder

Posted by redtail, 03-07-2010, 07:32 PMMy website on VPS with Hostgator sends out emails to...

Set up file that will be called up in cron

Posted by ninak, 03-09-2010, 10:10 AMI am kind of embarrassed asking this question but I hope...