REQ: Backup of website

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts

  • shimmyshack
    Guest replied
    Re: REQ: Backup of website

    On May 13, 11:27 pm, a...@spamcop.ne t (axlq) wrote:
    In article <1179089807.470 490.226...@p77g 2000hsh.googleg roups.com>,
    >
    shimmyshack <matt.fa...@gma il.comwrote:
    what control have you got over the server. Any large backup will take
    CPU time, and memory. If you had cron access I would suggest using
    zip.
    You might be able to find out what functions are on your system, and
    use on of them to recursively zip up a website.
    >
    for instance try
    <?php
    $files = file_get_conten ts('tobezipped. txt');
    system('minizip -o -9 pdfs.zip '.$files);
    exit();
    ?>
    where tobezipped.txt is a space separated list of double quoted files.
    >
    Good idea. Even better would be in that system() call:
    >
    system('nice -10 minizip -o -9 pdfs.zip '.$files);
    >
    The 'nice' command causes the task to be run in 'nice' mode at
    a lower priority so that it doesn't interfere with other more
    important functions being performed by the server.
    >
    Appending ' &' to the command may also force it to run in the
    background so your php script doesn't have to wait for it to
    complete:
    system('nice -10 minizip -o -9 pdfs.zip '.$files.' &');
    ...but I am unsure if that will work.
    >
    -A
    I suppose it might be worth mentioning the old fashioned way - good
    old FTP.
    Filezilla running at your house with a cron job to go fetch
    everything.
    PHP running at your house with a cron to start your custom script up
    and use ftp to grab everything.

    Leave a comment:


  • axlq
    Guest replied
    Re: REQ: Backup of website

    In article <1179089807.470 490.226520@p77g 2000hsh.googleg roups.com>,
    shimmyshack <matt.farey@gma il.comwrote:
    >what control have you got over the server. Any large backup will take
    >CPU time, and memory. If you had cron access I would suggest using
    >zip.
    >You might be able to find out what functions are on your system, and
    >use on of them to recursively zip up a website.
    >
    >for instance try
    ><?php
    >$files = file_get_conten ts('tobezipped. txt');
    >system('minizi p -o -9 pdfs.zip '.$files);
    >exit();
    >?>
    >where tobezipped.txt is a space separated list of double quoted files.
    Good idea. Even better would be in that system() call:

    system('nice -10 minizip -o -9 pdfs.zip '.$files);

    The 'nice' command causes the task to be run in 'nice' mode at
    a lower priority so that it doesn't interfere with other more
    important functions being performed by the server.

    Appending ' &' to the command may also force it to run in the
    background so your php script doesn't have to wait for it to
    complete:
    system('nice -10 minizip -o -9 pdfs.zip '.$files.' &');
    ....but I am unsure if that will work.

    -A

    Leave a comment:


  • shimmyshack
    Guest replied
    Re: REQ: Backup of website

    On May 13, 2:48 pm, mrwheel <henrik.larse.. .@gmail.comwrot e:
    Hello
    >
    I am seeking after a backup script, to take backup of my webspace on
    my server, my server iswww.servage.n eti need to take backup 2 times
    per day. Via cronjob onwww.cronjob.d ebut i have seeking i 2 days
    without reslut.
    >
    Where can i find some webspace / serverspace backup scripts?
    >
    Kind redgards
    Henrik
    what control have you got over the server. Any large backup will take
    CPU time, and memory. If you had cron access I would suggest using
    zip.
    You might be able to find out what functions are on your system, and
    use on of them to recursively zip up a website.

    for instance try
    <?php
    $files = file_get_conten ts('tobezipped. txt');
    system('minizip -o -9 pdfs.zip '.$files);
    exit();
    ?>
    where tobezipped.txt is a space separated list of double quoted files.

    Leave a comment:


  • mrwheel
    Guest started a topic REQ: Backup of website

    REQ: Backup of website

    Hello

    I am seeking after a backup script, to take backup of my webspace on
    my server, my server is www.servage.net i need to take backup 2 times
    per day. Via cronjob on www.cronjob.de but i have seeking i 2 days
    without reslut.

    Where can i find some webspace / serverspace backup scripts?

    Kind redgards
    Henrik

Working...