DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Export - Automate

  1. #1
    Join Date
    Oct 2001
    Location
    Hornchurch, Essex UK
    Posts
    132
    I'm planning to automate the daily exports of our databases. How long does one need to keep these exports? To keep a couple of days exports will require that the file is put in a separate folder after each export in order not to overwrite it.

    Thanks


  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    before export make a directory with date in order to track it

    we keep 5 days export in Disk then tape many months

    [Edited by pando on 05-13-2002 at 06:43 AM]

  3. #3
    Join Date
    Oct 2001
    Location
    Hornchurch, Essex UK
    Posts
    132
    What about a directory with days of the week so as not to keep changing the dates.

  4. #4
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    well I mentioned that make a directory before improt, that is very easy in UNIX, set a variable and do

    MYDATE=`date +"%Y%m%d"`
    mkdir $EXPORT_PATH/$MYDATE

    exp ...............................

  5. #5
    Join Date
    Mar 2002
    Location
    Manchester, England
    Posts
    202

    Angry

    what about doing that on NT (I miss my old unix boxes)

  6. #6
    Join Date
    Oct 2001
    Location
    Hornchurch, Essex UK
    Posts
    132
    Well, I was just going to ask the same question because I use NT.

    Thanks

  7. #7
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    then sorry I am not a NT man.... however you can run shell scripts or obtain unix commands in NT with Cygwin, it´s freeware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width