save an account

This is a discussion on save an account within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi there, I want to save / zip a web account from it's root via a php script. Sorry for ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2005
Bruno
 
Posts: n/a
Default save an account

Hi there,

I want to save / zip a web account from it's root via a php script.

Sorry for asking - because I have a very low internet link on my vacation
place and I have found out, that some hackers try tor "erase" some files now
and then. Changing password did not lead to a success so far.

So, if YOU have a URL or a script which COPIES or ZIPs all files including
subdirectories, you would really help me.

Thanks
Bruno


Reply With Quote
  #2 (permalink)  
Old 09-29-2005
Tyrone Slothrop
 
Posts: n/a
Default Re: save an account

On Thu, 29 Sep 2005 08:46:29 +0200, "Bruno" <bruno_storz@gmx.de>
wrote:

>Hi there,
>
>I want to save / zip a web account from it's root via a php script.
>
>Sorry for asking - because I have a very low internet link on my vacation
>place and I have found out, that some hackers try tor "erase" some files now
>and then. Changing password did not lead to a success so far.
>
>So, if YOU have a URL or a script which COPIES or ZIPs all files including
>subdirectories, you would really help me.
>
>Thanks
>Bruno


Bruno:

There is nothing much to backing up a directory. I am assuming that
you are on a Linux server.

$dir = "/path/to/dir2backup";
$filename = "backup";
$date = date ('Y-m-d');
bu_dir = "/path/to/backup/dir";

chdir ($bu_dir);
if (is_dir ($dir))
{
system ("tar -zcf $filename.$date.tar.gz $dir");
system ("chmod 666 $filename.$date.tar.gz");
}



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0