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
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

full server backup.....question?

Discussion in 'Plesk for Linux - 8.x and Older' started by ppc, Dec 9, 2006.

  1. ppc

    ppc Guest

    0
     
    I use the cron that creates a full server backup to a specific folder. I labeled it plesk backup. However, it seems that plesk is just making one big file instead of breaking up the backup and creating a new file from day to day.

    Is there anyway to change that?


    thanks

    ppc123
     
  2. jwdick

    jwdick Guest

    0
     
    First, I assume you are using the pleskbackup to make the backup. You can use the script below to make the backup filename show the date.

    By the way, if this is the command you are using, you are NOT getting a full system backup of the OS, just a full backup of Plesk, mysql databases, clients and domains and everything related to Plesk.
     
  3. ppc

    ppc Guest

    0
     
    Thanks!

    I'm a newbee so can you clarify this:

    I currently use the cron of pleskbackup, it looks like this:

    /usr/local/psa/bin/pleskbackup all /backup/pleskbackup

    Is there a way to just add something to this cron to make it make a seperate file every day i run the cron with the date?

    That script that you gave me, do i have to make it a file? I'm not using FTP though; can I just use the cron command that you gave there:

    /usr/local/psa/bin/pleskbackup --all /backupdirectory/fullbackup_$date

    and if so will that make a new file every time the cron is run?

    thanks again!
     
  4. jwdick

    jwdick Guest

    0
     
    Do you have SSH priviledges on the server? If yes, then log into the server, make a file called fullbackup and place these lines in the file:

    Then change your cron job to run the fullbackup file just created.

    I do not know of another way of adding the "date" variable.
     
  5. ppc

    ppc Guest

    0
     
    thanks :)

    Can i just setup the command in the cron settings in plesk for this:

    /backup/fullbackup (thats where its located)

    If I SSH in and run it("/backup/fullbackup"), it works fine but the cron did not do anything...

    also, how would i view the contents of the file...

    thanks again
     
  6. jwdick

    jwdick Guest

    0
     
    Sure, set the cron to run the file /backup/fullbackup

    If it runs from the command line (via ssh) then the script works. If the cron job does not do anything, it has to be a problem with the way you have the cron job scheduled or with permissions.
     
  7. ppc

    ppc Guest

    0
     
     
  8. jwdick

    jwdick Guest

    0
     
    Viewing the contents of the file is not so easy. I downloaded the backup file to my local machine, then upzipped it. Some of it is readable, some is mime and not readable unless you rip it. In the last day or so, I have read on this forum that there is a command to lsit the file names in the backup file but I do not remember what the utility is called, nor have I been success in findintg the thread that mentioned this utility. Maybe someone else can help here.
     
Loading...