useful-php-scripts icon indicating copy to clipboard operation
useful-php-scripts copied to clipboard

How to backup to specific Folder on server itself?

Open sks1123 opened this issue 5 years ago • 2 comments

Please share how to backup to a specified directory on the Server.

sks1123 avatar Apr 27 '20 11:04 sks1123

I'm trying to do same. I added these lines but it's not working. $file = public_path('backups/' . $backup_name); file_put_contents($file, $content);

Any help please

mrkobby avatar Oct 10 '20 10:10 mrkobby

My Gist could help https://gist.github.com/uvulpos/3e7f335f46bd9400c368222d38e81da8

uvulpos avatar Dec 27 '20 18:12 uvulpos