1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

backup question

Discussion in 'Plesk for Linux - 8.x and Older' started by qualispace, Apr 22, 2005.

  1. qualispace

    qualispace Regular Pleskian

    26
    73%
    Joined:
    Mar 9, 2005
    Messages:
    102
    Likes Received:
    0
    Hello,
    I have a backup script that will create a tar.gz file of each website and copy the file in another drive. I have Plesk 7.5 Reloaded. The following is the script

    # eg : sourcedir="/usr/local/psa/home/vhosts"
    #sourcedir="Put in the path of the source folder"
    sourcedir="/home/robinson/temp/test"

    # eg : backupdir="/backupdrive"
    #backupdir="Put in the path of the destination folder"
    backupdir="/home/robinson/temp/dest"


    for i in `ls $sourcedir`
    do
    tar -cpzf $backupdir/$i.tar.gz $sourcedir/$i --exclude "$sourcedir/logs"
    done

    Can anybody tell me if the above script will work fine or not? Also tell me where are the access_log files stored for all the websites in Plesk 7.5 Reloaded.

    Thanks
    Regards
    Nitesh
     
Loading...