[2008 R2] Help with backup

Discussion in 'Windows Server' started by FalCT60, May 2, 2013.

  1. FalCT60

    FalCT60 MDL Novice

    Sep 18, 2012
    8
    0
    0
    Hello,

    Could someone help me understanding what I'm doing wrong with 2k8 r2 backups ?
    I'm trying to backup a folder's content into a destination located to an external USB drive.
    Folder to backup : e:\data
    Target folder : g:\target (where target will be the date in yyyyMMdd format)
    If I start powershell and type :
    wbadmin -backupTarget:"g:\target" -include:"e:\data"
    then I end getting an error message complaining (I translate from french, so sorry for errors) that :
    "The specified backup location cannot be found or is not a valid backup location"
    But, If I type :
    wbadmin -backupTarget:"g:" -include:"e:\data"
    then, it works fine - but, then, I cannot have distinct backups for each day.
    I browsed MS boards and technets, but couldn't find any helpful information on this. And google was anything but my friend either.
    Any idea about what I'm doing wrong ?

    Many thanks,

    J.-L.
     
  2. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,612
    1,405
    60
    What i know is -backupTarget: don't support argument like "g:\target", it only support driver letter or network share.....

    you can try this, share your folder "Target" & give UNC path to -backupTarget:
     
  3. FalCT60

    FalCT60 MDL Novice

    Sep 18, 2012
    8
    0
    0
    Hello,

    Fine. I give it a tray, then I come back.

    Thank you.
     
  4. FalCT60

    FalCT60 MDL Novice

    Sep 18, 2012
    8
    0
    0
    Me again...

    I modified the script to match destination requirements :
    ------------- Begin script -----------
    $jour=get-date -uformat %Y%m%d
    $vol="\\m20sewhq01\g$\SVG-Quot\"
    $dest=$vol+$jour
    mkdir $dest
    wbadmin Start Backup -backuptarget:$dest -include:"D:\Horoquartz" -vsscopy -quiet
    --------------- End script -----------
    This time, I get another error that says approximatively :
    "Unable to achieve requested task because of system file limitation"
    However, the folder 20130502 is correctly created on G: and, moreover, content has been added to it, as one can see in attached file List.txt.
    I redirected the output to a file I attach here - guess it won't be of any use... -.:confused:
    This 2k8 r2 is getting me more and more puzzled...:mad:

    Regards,

    J.-L.
     

    Attached Files:

  5. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,612
    1,405
    60
    #5 rrohela, May 2, 2013
    Last edited: May 2, 2013
    What is file system on drive that used to keep backup?

    And to test backup use CMD console & then change\ modify your script according to results...
     
  6. FalCT60

    FalCT60 MDL Novice

    Sep 18, 2012
    8
    0
    0
    It's NTFS. But I don't see why it would be relevant, since backups only fail when I try to send them in a folder. If I do them at the root of the volume, they systematically succeed.
    Seems not that logical to me...

    Regards,

    J.-L.
     
  7. rrohela

    rrohela MDL Expert

    Sep 1, 2009
    1,612
    1,405
    60
    Just asked to confirm & yes after your confirmation its not relevant to problem....
     
  8. FalCT60

    FalCT60 MDL Novice

    Sep 18, 2012
    8
    0
    0
    Hello,
    Just tested to be sure : the windows backup task itself behaves the same!
    So, I created a script for daily-backups and one for monthly ones (this one saves the whole server), all sending data at the root of G:\, and I'm going to see what happens.
    Next step will be to check for what I cant retrieve this way, ie if I can only retrieve data from the latest backup, or also ones from a earlier backup.
    Let's keep our fingers crossed.

    Best regards,

    J.-L
     
  9. Mr 0x00

    Mr 0x00 MDL Novice

    Aug 19, 2012
    27
    9
    0
    Disable compression. This is blue folders on the target disk, with subdirs :biggrin:
     
  10. cyberbot

    cyberbot MDL Senior Member

    Jul 30, 2011
    463
    20
    10
    this because Windows serverv back support to back-up only one partition per disk, i''ve run to the same issue, after i tried Veeam which cause alot of trouble backing up files and folders, now i am using Symantec backup ex is amazing tool, you should try it
     
  11. FalCT60

    FalCT60 MDL Novice

    Sep 18, 2012
    8
    0
    0
    Hello,

    @ Mr 0x00 : compression is not enabled on the target disc ([right clic / properties / compress volume to increase free space] is unchecked, assuming that is what you mean). See below the 2nd part of my reply to cyberbot.
    @ cyberbot : this software looks fair, though I don't think I will be able to have it bought before next year, as it wasn't budgeted.
    As for the fact it only supports one partition per disk, I don't understand what it really means. I found an article on iTPro ([itpro.] [fr/a/creer-sauvegarde-windows-server-wbadmin/] remove all brackets and spaces) with a script that I slightly modified (and corrected some minor typos) as follows :
    -------------------- Begin Script ----------------------
    @echo off
    chcp 1251
    ::SVG-Mens.bat

    rem backup target UNC
    set Target=\\M20SEWHQ01\G$

    rem define date time variables for building the folder name
    set d=%date:~0,2%
    set m=%date:~3,2%
    set y=%date:~6,4%
    set h=%time:~0,2%
    set min=%time:~3,2%
    set sec=%time:~6,2%

    rem files and folders to include

    rem defining target folder like \\Server\backup\20091215_132532
    set newfolder=%Target%\SVG-Mens\%m%%d%%y%_%h%%min%%sec%
    echo Creating %newfolder%
    mkdir %newfolder%

    rem run the backup
    echo Backing up %include% to %newfolder%
    wbadmin start backup -backupTarget:%newfolder% -allCritical -vssfull -quiet

    rem Clear variables
    set backupshare=
    set include=
    set m=
    set d=
    set y=
    set h=
    set min=
    set sec=
    set newfolder=
    ------------------------ End Script ------------------------

    Running this script worked fine : it saved my server correctly (at least, that is what it reported!).

    Then I duplicated it and modified so as to get a different one for partial backups :
    ------------------------ Mods & add-ons ------------------
    .../...
    rem files and folders to include
    set include=D:\Horoquartz,E:\HQSAUVE
    .../...
    echo Backing up %include% to %newfolder%
    wbadmin start backup -backupTarget:%newfolder% -include:%include% -quiet
    .../...
    -------------------------------------------------------------
    This time again, as I feraed it, it didn't work.
    What I can't understand is why, with the same syntax, partial backups always fails as total ones always succeed (I didn't try full backups before, as I was focussed on the problem) ?

    Regards,

    J.-L.
     
  12. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,833
    1,748
    180
    Just use a backup software, there are few that are free

    sebus
     
  13. sonic9

    sonic9 MDL Novice

    Aug 4, 2009
    27
    9
    0
    what is the error displayed ? don't clear variable before your modification ...

    @sebus: free programs with imaging and incremental backup ... haven't yet found ...