how to implement tar command through php script?
Jump to Post
$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
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.