دفع البيانات إلى التخزين البعيد
خزّن مجموعات البيانات في S3 أو GCS باستخدام remote في DVC.
دفع البيانات إلى التخزين البعيد درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MLOps Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MLOps Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
The Cache Is Only Local
So far your data lives in DVC's local cache on one machine. Teammates and CI cannot reach it, so you need a shared place to store it.
Meet the DVC Remote
A DVC remote is cloud or shared storage where your data cache is uploaded. Think of it like a Git remote, but for the heavy data instead of code.
Many Backends Supported
DVC speaks to S3, Google Cloud Storage, Azure, SSH, and even a plain shared folder. You pick whatever storage your team already uses. ☁️
Add an S3 Remote
Use dvc remote add to register storage. The -d flag marks it as the default so push and pull use it automatically.
dvc remote add -d storage s3://my-bucket/dvcstoreCommit the Remote Config
The remote setting lives in .dvc/config. Commit it to Git so every teammate inherits the same remote without extra setup.
git add .dvc/config
git commit -m "Add S3 DVC remote"Credentials Stay Out of Git
DVC reads cloud credentials from your environment or AWS profile, never from the committed config. Secrets stay safe and out of version control.
export AWS_ACCESS_KEY_ID=...
export AWS_SECRET_ACCESS_KEY=...Push Data Up
Run dvc push to upload everything in your cache to the remote. Only files not already there are sent, so it stays fast.
dvc pushPush and Git Push Together
A safe habit: push data first, then push code. That way the .dvc pointers in Git always point to data that already exists in the remote.
dvc push
git pushTeammates Pull Data Down
After cloning and git pull, a colleague runs dvc pull to download the exact datasets the .dvc files reference. Code and data reunite.
git clone <repo>
dvc pullFetch vs Pull
dvc fetch downloads data into the cache only, while dvc pull also restores it into your working folder. Pull is fetch plus checkout in one step.
Dedup Saves Bandwidth
Because the remote is content-addressed, unchanged files are never re-uploaded. Push only the bytes that are genuinely new. 🚀
Quick Check
Which command sends your tracked data from the local cache up to shared storage?
Recap
You added a DVC remote, committed its config, and used dvc push to upload data. Teammates run dvc pull to fetch the exact datasets your pointers reference.
الأسئلة الشائعة
هل درس «دفع البيانات إلى التخزين البعيد» مجاني؟
نعم — نص درس «دفع البيانات إلى التخزين البعيد» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MLOps Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MLOps Academy 4 دروس في المجموع.
ماذا ستتعلم في «دفع البيانات إلى التخزين البعيد»؟
خزّن مجموعات البيانات في S3 أو GCS باستخدام remote في DVC. تتمرن على MLOps Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ MLOps Academy؟
لا تُشترط خبرة سابقة. MLOps Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.
كم من الوقت يستغرق درس «دفع البيانات إلى التخزين البعيد»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس MLOps Academy هذا؟
نعم. كل درس في MLOps Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- لماذا لا يكفي Git لإصدار البيانات
- تهيئة DVC وتتبع مجموعة بيانات
- دفع البيانات إلى التخزين البعيد
- الرجوع إلى إصدار سابق من مجموعة البيانات