Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Halaman ini memberikan detail tentang cara memulihkan data tertentu yang Anda pilih dari
snapshot.
Tentang pemulihan data berbasis snapshot
Anda dapat menggunakan snapshot untuk memulihkan file dan direktori yang dihapus atau rusak menggunakan operasi akses file berdasarkan sistem operasi Anda.
Memulihkan data menggunakan klien Linux
Snapshot dapat diakses menggunakan sistem file seperti UNIX di sistem operasi Linux. Untuk memulihkan data menggunakan klien Linux, aktifkan opsi
Buat direktori snapshot terlihat di bagian jadwal snapshot volume.
Direktori .snapshot muncul di titik pemasangan volume.
Contoh pemulihan data di klien Linux
Contoh berikut menunjukkan urutan operasi file pada volume yang di-mount
ke klien Linux. Volume berisi dua file dan satu snapshot. Dalam
contoh ini, pengguna menghapus file dan menggunakan snapshot untuk memulihkan file versi
terbaru dari snapshot terbaru:
$ df -h .
Filesystem Size Used Avail Use% Mounted on
10.31.240.4:/example-volume-1 1.0T 4.5M 1.0T 1% /netapp
$ ls
chinook.db readme.txt
$ rm chinook.db
$ ls -la .
total 12
drwxrwxrwx 2 root root 4096 May 31 15:02 .
drwxr-xr-x 20 root root 4096 May 31 13:42 ..
drwxrwxrwx 3 root root 4096 May 31 14:35 .snapshot
-rw-rw-r-- 1 ubuntu ubuntu 14 May 31 14:24 readme.txt
$ ls .snapshot
hourly.2022-05-31_1435
$ ls .snapshot/hourly.2022-05-31_1435
chinook.db readme.txt
$ cp .snapshot/hourly.2022-05-31_1435/chinook.db .
$ ls
chinook.db readme.txt
Memulihkan data menggunakan klien Windows
Untuk memulihkan data menggunakan klien Windows, aktifkan opsi
Make snapshot directory visible di bagian jadwal snapshot volume. Kemudian, Anda dapat mengakses snapshot menggunakan tab Versi Sebelumnya
di jendela properti File Explorer. Untuk memulihkan file, tarik file
dari folder snapshot ke lokasi aslinya.
Contoh pemulihan data di klien Windows
Contoh berikut menunjukkan cara mengakses snapshot menggunakan jalur file ~snapshot:
Z:\dir z:\~snapshot
Volume in drive Z is restore-example-1
Volume Serial Number is 8080-F15D
Directory of z:\~snapshot
05/31/2022 04:08 PM <DIR> ..
05/31/2022 03:59 PM <DIR> hourly.2022-05-31-1600
05/31/2022 04:02 PM <DIR> hourly.2022-05-31_1605
0 File(s) 0 bytes
3 Dir(s) 0 bytes free
Z:\>
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-04 UTC."],[],[],null,["# Restore specific data with snapshots\n\nThis page provides details about restoring specific data you select from a\nsnapshot.\n\nAbout snapshot-based data restoration\n-------------------------------------\n\nYou can use snapshots to restore deleted or corrupted files and directories\nusing file access operations based on your operating system.\n\nRestore data using a Linux client\n---------------------------------\n\nSnapshots are accessible using the UNIX-like file system on Linux operating\nsystems. To restore data using a Linux client, enable the\n**Make snapshot directory visible** option in the volume snapshot schedule section.\nA `.snapshot` directory appears in the mount point of the volumes.\n\n### Example of data restoration on a Linux client\n\nThe following example shows a sequence of file operations on a volume mounted\nto a Linux client. The volume contains two files and one snapshot. In this\nexample, the user deletes a file and uses the snapshot to restore the latest\nversion of the file from the newest snapshot: \n\n $ df -h .\n\n Filesystem Size Used Avail Use% Mounted on\n 10.31.240.4:/example-volume-1 1.0T 4.5M 1.0T 1% /netapp\n\n $ ls\n\n chinook.db readme.txt\n\n $ rm chinook.db\n\n $ ls -la .\n\n total 12\n drwxrwxrwx 2 root root 4096 May 31 15:02 .\n drwxr-xr-x 20 root root 4096 May 31 13:42 ..\n drwxrwxrwx 3 root root 4096 May 31 14:35 .snapshot\n -rw-rw-r-- 1 ubuntu ubuntu 14 May 31 14:24 readme.txt\n\n $ ls .snapshot\n\n hourly.2022-05-31_1435\n\n $ ls .snapshot/hourly.2022-05-31_1435\n\n chinook.db readme.txt\n\n $ cp .snapshot/hourly.2022-05-31_1435/chinook.db .\n\n $ ls\n\n chinook.db readme.txt\n\nRestore data using a Windows client\n-----------------------------------\n\nTo restore data using a Windows client, enable the\n**Make snapshot directory visible** option in the volume snapshot schedule\nsection. You can then access snapshots using the **Previous Versions** tab\nof the File Explorer property window. To restore a file, drag it\nfrom a snapshot folder to its original location.\n\n### Example of data restoration on a Windows client\n\nThe following example shows you how to access snapshots using the `~snapshot`\nfile path: \n\n Z:\\dir z:\\~snapshot\n Volume in drive Z is restore-example-1\n Volume Serial Number is 8080-F15D\n\n Directory of z:\\~snapshot\n\n 05/31/2022 04:08 PM \u003cDIR\u003e ..\n 05/31/2022 03:59 PM \u003cDIR\u003e hourly.2022-05-31-1600\n 05/31/2022 04:02 PM \u003cDIR\u003e hourly.2022-05-31_1605\n 0 File(s) 0 bytes\n 3 Dir(s) 0 bytes free\n\n Z:\\\u003e\n\nWhat's next\n-----------\n\n[About backups](/netapp/volumes/docs/protect-data/about-backups)."]]