একটি ইন-প্লেস রিস্টোর করুন

এই পৃষ্ঠাটি বর্ণনা করে কিভাবে ব্যাকআপের উৎস ডাটাবেসের মতো একই নামের একটি ডাটাবেসে ডেটা পুনরুদ্ধার করা যায়। আপনি এই পৃষ্ঠাটি পড়ার আগে, আপনার ব্যাক আপ এবং ডেটা পুনরুদ্ধারের সাথে পরিচিত হওয়া উচিত৷

স্থান পুনরুদ্ধার

একটি ইন-প্লেস পুনরুদ্ধার আপনাকে একটি ব্যাকআপ থেকে উৎস ডাটাবেসে একটি ডাটাবেস পুনরুদ্ধার করতে দেয় যা মূল ডাটাবেসটি এখনও বিদ্যমান থাকাকালীন ব্যাকআপ তৈরি করেছে। একটি ইন-প্লেস পুনরুদ্ধার আপনাকে ট্রাফিককে পুনরায় রুট করা বা ভিন্ন নামে একটি ডাটাবেস তৈরি এড়াতে সহায়তা করে।

একটি পুনরুদ্ধার ক্রিয়াকলাপ অবশ্যই একটি গন্তব্য ডেটাবেস ব্যবহার করতে হবে যা ইতিমধ্যে বিদ্যমান নেই৷ যাইহোক, আপনি উৎস ডাটাবেস মুছে একটি ইন-প্লেস রিস্টোর অনুকরণ করতে পারেন এবং তারপরে সোর্স ডাটাবেসের মতো একই নামের একটি ব্যাকআপ থেকে একটি নতুন ডাটাবেসে পুনরুদ্ধার করতে পারেন।

একটি ইন-প্লেস রিস্টোর করুন

To perform an in-place restore, follow these steps:

  1. Identify the backup to use for the restore operation.
  2. বিদ্যমান ডাটাবেস মুছুন।
  3. Use the backup and the database ID of the deleted database to complete the restore operation.

আপনি শুরু করার আগে

We recommend completing the following steps before starting the in-place restore process:

  1. ডাটাবেসের ডাটা এক্সপোর্ট করুন আপনি মুছে ফেলবেন।

    If you need to recover the deleted database, import the data from export operation. To recover the deleted database to the same database ID, you must wait until any running restore operations complete and then:

    1. Delete the existing database with the database ID and wait at least 5 minutes
    2. ডাটাবেস আইডি দিয়ে একটি নতুন ডাটাবেস তৈরি করুন
    3. একটি আমদানি অপারেশন শুরু করুন
  2. Retrieve and copy the index configuration of your database. Export operations do not capture index definitions. Use the index configuration to re-create indexes after you complete the in-place restore operation. Use the following commands to retrieve the index configuration of your database:

একটি ইন-প্লেস রিস্টোর করুন

Complete the following steps to perform an in-place restore operation. This process requires downtime between the moment you delete the database and when the restore operation completes.

Once a restore operation begins, you cannot cancel the operation and must wait until the operation completes. The restore operation immediately occupies the database ID used in the operation.

  1. Use the gcloud alpha firestore backups list command to identify the backup to use for the restore operation and note the resource name. সম্পদের নাম নিম্নলিখিত বিন্যাস ব্যবহার করে:

        projects/PROJECT_ID/locations/LOCATION/backups/BACKUP_ID
    
  2. Use the gcloud firestore databases delete command to delete the existing database:

        gcloud firestore databases delete --database='DATABASE_ID'
    

    ডেটাবেস আইডি দিয়ে DATABASE_ID প্রতিস্থাপন করুন।

  3. ডাটাবেস আইডি পুনরায় উপলব্ধ হওয়ার জন্য ডাটাবেস মুছে ফেলার পরে কমপক্ষে 5 মিনিট অপেক্ষা করুন। gcloud alpha firestore databases restore কমান্ড ব্যবহার করে একটি পুনরুদ্ধার অপারেশন শুরু করুন:

    gcloud alpha firestore databases restore \
    --source-backup=projects/PROJECT_ID/locations/LOCATION/backups/BACKUP_ID \
    --destination-database='DATABASE_ID'
    

    ডেটাবেস আইডি দিয়ে DATABASE_ID প্রতিস্থাপন করুন।

এরপর কি