Copy Database Backup from One Server to Another

  • Hi,

    On one of our servers, we run weekly Full backup (through Maintenance Plan) for all databases onto BACKUP folder. Now, I need to add a step to copy only one Database backup file from BACKUP folder (after completion of FULL backup) to another server. As the folder contains many Database backups along with Time stamp, please let us know how can I take only one backup file to be copied onto another Server.

  • Write a script in Powershell (or your favourite scripting language) that will take the most recent file and copy it to its destination. Alternatively, there's probably a task in SSIS that will do it for you. Or you might consider backing up directly to the destination instead.

    John

  • previously I've used powershell to do this, works very well

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Do any of the backups contain any PII or other sensitive information that probably shouldn't leave the production server?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply