how to implement tar command through php script?
carobee
0
Posting Whiz in Training
Recommended Answers
Jump to PostLike this:
$script = "tar -czf $backupdir/DATABASE-$dbname.tgz $backupdir/$dbname.sql"; $results = system($script,$retval); echo "\n CREATE TAR FILE:\n $results\n RETURN VALUE: $retval\n";
Obviously fill in the $variables as needed.
but I use it for a backup of mysql db;s
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.