Announcement

Collapse
No announcement yet.

File manager

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File manager

    Hi am looking to somehow use some other file manager in lieu of the Hespia CP file manager, it only allows zipping 10 files in one batch and moving files only a screen full in one go. I have over 1000 files in one directory and it is painfull doing any backups. Any suggestions for "approved" programs????
    thanks jumbuck
    ps do you need to be superman to get the verification images???

  • #2
    Have you tried going one level up in File Manager and selecting the folder, then click on Compress? I know I’ve zipped up entire domain folders in the past using this method, then download via FTP (Filezilia)

    Also, if you have a list of files, clicking and highlighting the top one then navigate down to the last one but hold down shift while clicking it selects all the files in between these files you selected.

    Failing this you could maybe write a PHP script to zip the files up and place them in a folder ready for you to download. Maybe on a CRON job ?

    Example create a file called zipbackup.php with the contents as follows :
    Code:
    <?php
    // Config
    
    $sourcefolder = "folder_to_be_zipped"           ; 
    $zipfilename  = "mybackup.zip"; 
    $timeout      = 5000           ; 
    
    
    $dirlist = new RecursiveDirectoryIterator($sourcefolder);
    $filelist = new RecursiveIteratorIterator($dirlist);
    
    // set script timeout value 
    ini_set('max_execution_time', $timeout);
    
    // instantiate object
    $zip = new ZipArchive();
    
    // create and open the archive 
    if ($zip->open("$zipfilename", ZipArchive::CREATE) !== TRUE) {
        die ("Could not open archive");
    }
    
    // add each file in the file list to the archive
    foreach ($filelist as $key=>$value) {
        $zip->addFile(realpath($key), $key) or die ("ERROR: Could not add file: $key");
    }
    
    // close the archive
    $zip->close();
    echo "Backup ". $zipfilename . " created successfully.";
    
    // And provide download link ?>
    <a href="http:<?php echo $zipfilename;?>" target="_blank">
    Download <?php echo $zipfilename?></a>
    Script adapted from : http://stackoverflow.com/questions/3...ing-php-script

    You can run the php script manually and it will provide you with a download link.

    As for the verification image all the spam bots seem to be reading it very clearly!! I’ve just deleted about 30 posts and banned the posters this morning!
    Last edited by clivejo; 24-12-2012, 03:35 PM.

    Comment


    • #3
      Another great post by clivejo!

      I can use the information as well.

      BR,
      Tom.

      Comment


      • #4
        Hi Clivejo, I think i must have missed your post or forgot to respond. Your script is a great piece of work and i offer my thanks for making my life much easier with the large batch of images. Much appreciation Jumbuck.

        Comment


        • #5
          Originally posted by Tom Alexander View Post
          Another great post by clivejo!

          I can use the information as well.

          BR,
          Tom.

          He is good isn't he Tom?

          Comment

          Working...
          X