cancel
Showing results for 
Search instead for 
Did you mean: 

Retarget jobs from a library to another

Pascal75
Level 3

Hello,
I have to change my library, my old library and my new library have the same partirions, more than 400 replication jobs use this library.
the jobs use different partitions, for example, weekend 1 uses partition 1, weekend 2 uses partition 2 ...
after making a copy of the backupexec directories, i tried deleting the old library and then told to redirect the jobs to the new one. the problem is that the job targets the new library but doesn't indicate the partition. i'd like to keep the original partitions in jobs on the new library. how can i do this without modifying each job by hand.

BR

Pascal

1 REPLY 1

meuhassan
Level 4

Here are the steps on how to keep the original partitions in jobs on the new library without modifying each job by hand:

  1. Create a backup of the old library.
  2. Delete the old library.
  3. Create a new library with the same name and partitions as the old library.
  4. Restore the backup of the old library to the new library.
  5. Edit the jobs to point to the new library.
  6. Set the "Use Default Partition" option to "No" for the jobs that need to use specific partitions.
  7. Set the "Partition" option for the jobs that need to use specific partitions.

Here are some additional things to keep in mind:

  • Make sure that the new library has the same permissions as the old library.
  • Make sure that the new library has the same media as the old library.
  • If you are using a proxy server, make sure that the proxy server is configured for the new library.

I hope this helps! Let me know if you have any other questions.

Here are the commands that you can use to perform the steps above:

# Create a backup of the old library
bpbackup -s old_library

# Delete the old library
bpdelete -s old_library

# Create a new library with the same name and partitions as the old library
bpcreate -s new_library -p <partition_1> -p <partition_2> ...

# Restore the backup of the old library to the new library
bprestore -s new_library -b <backup_file>

# Edit the jobs to point to the new library
bpedit -s <job_name> -l new_library

# Set the "Use Default Partition" option to "No" for the jobs that need to use specific partitions
bpedit -s <job_name> -p <partition_name> -u

# Set the "Partition" option for the jobs that need to use specific partitions
bpedit -s <job_name> -p <partition_name> -p <partition_value>