Overwriting old backup

Discussion in 'Paragon Drive Backup Product Line' started by Dave49, Aug 20, 2010.

Thread Status:
Not open for further replies.
  1. Dave49

    Dave49 Registered Member

    Joined:
    Jan 29, 2008
    Posts:
    162
    Location:
    Northeast U.S.
    I'm using Paragon Drive Backup 9 Personal. I'm backing up to a second internal hdd with limited space. The scheduled backup performs every night just like I set it. But it adds the new back up beside the last one. I would like the current back up to overwrite the previous one but can't find a way to do that. Can't find any mention of this in the Help File. Could someone please tell me if this is possible and if so, how to do it?

    Thanks,

    Dave

    *edit*

    Ok, so here's the script from the scheduler:

    // This file was automatically generated by Paragon script generator
    // Time of creation: Thu Aug 19 07:59:16 2010
    // Use Paragon Script Interpretator to run this file

    // Settings block
    settings
    surfacetest off
    verify off
    copyonetoone off
    hddrawprocess off
    allow64kcluster off
    donothidetarget on
    copyinsteadofmove off
    bigdrives off
    compressionlevel 0
    sidafterdisk off
    sidafterpartition off
    defaultsidchanger on
    nodellabel off
    timeshift 0
    oemcodepage 850
    timezone 11
    langnumber 17
    slavecfg off
    notforslave off
    enablerestart on
    enablevirtualdb on
    autoconverttofat32 on
    sidparams ""
    bootcdiso ".\..\ISO\bootcd.iso"
    hotbackup lockimpossible
    tempdrive C
    endsettings

    // Turn off confirmation
    confirm off

    // Backup
    img = "F:/Paragon/arc_190810115810765/arc_190810115810765_$(YEAR)_$(MONTH)$(DAY).PBF"
    select disk 0
    select partitions all
    options
    cmp = 0
    mfs = 2048000
    notempfiles
    label = "No comment"
    autonames
    hotbackup lockimpossible
    tempdrive C
    usevss
    store

    // Check for errors
    call check_error

    // Apply all scheduled operations
    apply all

    // Check for errors
    call check_error

    // Exiting
    // exit(0)

    // Function for checking error
    check_error:
    if (errorcode(1) != 0)
    then
    print "Some error occured: "
    strerror(errorcode(1))
    print ""
    print "Exiting"
    print ""
    exit(errorcode(1))
    endif
    endcall

    What can I change in this script in order to have the program overwrite the previous back up with the new one?

    Thanks,

    Dave
     
    Last edited: Aug 20, 2010
  2. Paragon_MattK

    Paragon_MattK Paragon Moderator

    Joined:
    Jan 14, 2010
    Posts:
    176
    Location:
    Irvine, CA
    What you need to do is take the variables out of the file name that it creates, this way it will be overwritten every time. This is the line you would need to change:

    // Backup
    img = "F:/Paragon/arc_190810115810765/arc_190810115810765_$(YEAR)_$(MONTH)$(DAY).PBF"

    To:


    img = "F:/Paragon/arc_190810115810765/arc_190810115810765.PBF"

    for example:



    // This file was automatically generated by Paragon script generator
    // Time of creation: Thu Aug 19 07:59:16 2010
    // Use Paragon Script Interpretator to run this file

    // Settings block
    settings
    surfacetest off
    verify off
    copyonetoone off
    hddrawprocess off
    allow64kcluster off
    donothidetarget on
    copyinsteadofmove off
    bigdrives off
    compressionlevel 0
    sidafterdisk off
    sidafterpartition off
    defaultsidchanger on
    nodellabel off
    timeshift 0
    oemcodepage 850
    timezone 11
    langnumber 17
    slavecfg off
    notforslave off
    enablerestart on
    enablevirtualdb on
    autoconverttofat32 on
    sidparams ""
    bootcdiso ".\..\ISO\bootcd.iso"
    hotbackup lockimpossible
    tempdrive C
    endsettings

    // Turn off confirmation
    confirm off

    // Backup
    img = "F:/Paragon/arc_190810115810765/arc_190810115810765.PBF"
    select disk 0
    select partitions all
    options
    cmp = 0
    mfs = 2048000
    notempfiles
    label = "No comment"
    autonames
    hotbackup lockimpossible
    tempdrive C
    usevss
    store

    // Check for errors
    call check_error

    // Apply all scheduled operations
    apply all

    // Check for errors
    call check_error

    // Exiting
    // exit(0)

    // Function for checking error
    check_error:
    if (errorcode(1) != 0)
    then
    print "Some error occured: "
    strerror(errorcode(1))
    print ""
    print "Exiting"
    print ""
    exit(errorcode(1))
    endif
    endcall
     
  3. Dave49

    Dave49 Registered Member

    Joined:
    Jan 29, 2008
    Posts:
    162
    Location:
    Northeast U.S.
    Got it! Thanks very much!!!

    Dave
     
Loading...
Thread Status:
Not open for further replies.