How do you know what number is appended to b/u file name?

Discussion in 'Acronis True Image Product Line' started by eliotrtow, Jan 2, 2007.

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

    eliotrtow Registered Member

    Joined:
    Feb 10, 2006
    Posts:
    16
    Maybe someone can help me with this.

    I am starting to write a batch script to delete the previous differential backup each time a new one is created. Each backup (*.tib) file is incremented by 1 (e.g., D DRIVE BACKUP.tib, then D DRIVE BACKUP2.tib, then D DRIVE BACKUP3.tib). What variable holds the number of the current backup? In other words, how do I tell the script which b/u file to delete?

    I hope the question makes sense. Thanks much in advance for any responses.

    Eliot
     
  2. jmk94903

    jmk94903 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    3,329
    Location:
    San Rafael, CA
    You know the first differential is xyz1.tib. So, why not delete it before you make the next differential. Do this in a batch file that runs before the differential. That way the name should always be xyz1.tib for the differential... I think.
     
  3. eliotrtow

    eliotrtow Registered Member

    Joined:
    Feb 10, 2006
    Posts:
    16
    jmk94903 - Pretty logical, and worth a try. As you indicated by "I think", it makes sense, but doesn't necessarily mean it works that way. It may be good to delete the previous file after the backup is done, then rename backup 2 to b/u 1. It may give me a better shot at having a good full backup.

    Your idea is very good. Thanks buddy.
     
  4. jmk94903

    jmk94903 Registered Member

    Joined:
    Jul 10, 2004
    Posts:
    3,329
    Location:
    San Rafael, CA
    Let me know what works best. Then I can leave off the "I think" the next time. :)
     
  5. Acronis Support

    Acronis Support Acronis Support Staff

    Joined:
    Apr 28, 2004
    Posts:
    25,885
    Hello eliotrtow,

    Thank you for choosing Acronis Disk Backup Software.

    We are sorry for the delayed response.

    First, please let me correct jmk94903. The first incremental/differential backup file name will end with "2" (for example: Mybackup2.tib). Please have a look at this previous post of mine describing backup naming scheme.

    I would also recommend that you have a look at this article in Acronis Public Knowledge Base. There you can find a batch file, which helps to rename files using pre/post commands.

    Thank you.
    --
    Aleksandr Isakov
     
Thread Status:
Not open for further replies.