Forum Discussion

rsm_gbg's avatar
rsm_gbg
Level 5
14 years ago
Solved

Archiving files older than a specific date

I have a perl script that finds files older than a specific date, like older than 2012-01-01 00:00.0

It then moves these files from a data directory to an Archive area.

Then I use a standard Netbackup Policy that backups these files to LTO tapes in an Archive Volume Pool with infinity Data expiration.

When on tape and verified I delete the archived files.

I investigated the archive option in "Backup Files" but that really takes the lot not on a date specification.

 

Any ideas how to get Netbackup doing this automatically?

Netbackup Enterprise 7.1.0.3 running on Solaris 10 SPARC.

  • Archiving is a schedule type - User Archive. The Policy type will be Standard for Unix clients and MS-Windows for Windows clients.

    It can be called from the BAR GUI on the client or from cmd on the client.

    See User Archive on p. 631 of NBU Admin Guide for UNIX and Linux, Volume I  http://www.symantec.com/docs/DOC3650

     

8 Replies

  • Archiving in NBU is not meant as an Archiving solution and can only be done manually.

    You can use 'bparchive' as the last part of your script. It will backup your folder and only delete after backup has completed successfully. Create a new policy for the client with archive type schedule and open window during which user archives will be allowed or else add archive schedule to existing policy.

    Command:

    bparchive -help
    USAGE: bparchive [-p policy] [-s schedule] [-k "keyword phrase"]
               [-L progress_log [-en]] [-S master_server...]
               [-t policy_type] [-w [hh:mm:ss]]
               -f listfile | filenames
     

    Example:
    bparchive -p <policy-name> -s <schedule> -L <logfile>  /arch-folder

  • Ok, thanks that was what I thought as well.

    Is there a product that does just this?

  • Symantec has a product called Enterprise Vault, but it's for Windows only - filesystem, Exchange and Sharepoint archiving.

    For Unix, we don't really have an archiving solution, other than maybe Dynamic Storage Tiering that comes with Storage Foundation. Rules are configured to move older (or some other criteria) files to lower tiered storage.

    I don't know non-Symantec products....

     

  • Usually for unix you have to write our own script to archive the files and delete after successful backup

  • Isn't there a way of selecting archiving in a policy.

    Or do I have to run it from the command line?

    Can't find any Archiving in the "Policy Type" drop list.

  • Archiving is a schedule type - User Archive. The Policy type will be Standard for Unix clients and MS-Windows for Windows clients.

    It can be called from the BAR GUI on the client or from cmd on the client.

    See User Archive on p. 631 of NBU Admin Guide for UNIX and Linux, Volume I  http://www.symantec.com/docs/DOC3650