Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Google Drive tự động lưu giữ nhật ký sửa đổi, giúp người dùng theo dõi các thay đổi đối với tệp và nội dung. Trong nhật ký sửa đổi, người dùng có thể xem những nội dung đã chỉnh sửa và có thể quay lại một phiên bản cụ thể của tệp có nội dung chỉnh sửa cụ thể.
Các thuật ngữ sau đây có liên quan đến các tài nguyên thay đổi và bản sửa đổi của API Google Drive:
Danh sách kiểm soát quyền truy cập (ACL)
Danh sách tất cả các tài nguyên quyền liên kết với một tệp, thư mục hoặc bộ nhớ dùng chung.
Thay đổi
Nội dung hoặc siêu dữ liệu của tệp hoặc bộ nhớ dùng chung bị thay đổi.
Nhật ký thay đổi của người dùng
Hồ sơ về tất cả các thay đổi mà người dùng đã thực hiện đối với mọi tệp có thể chỉnh sửa trong phần Drive của tôi, chẳng hạn như tệp Google Tài liệu, Trang tính hoặc Trang trình bày. Đối với thành viên của bộ nhớ dùng chung, nhật ký thay đổi của người dùng cũng bao gồm các mục về tư cách thành viên của bộ nhớ dùng chung, cấp độ truy cập của người dùng đối với các mục trong bộ nhớ dùng chung đó và các thay đổi về tên của bộ nhớ dùng chung.
Nhật ký thay đổi của bộ nhớ dùng chung
Nhật ký ghi lại mọi thay đổi đối với bộ nhớ dùng chung, chẳng hạn như việc thêm hoặc xoá người dùng, cũng như mọi thay đổi đối với các mục trong bộ nhớ dùng chung đó. Thay đổi đối với một mục trong bộ nhớ dùng chung sẽ xuất hiện trong cả nhật ký thay đổi của người dùng và nhật ký thay đổi của bộ nhớ dùng chung.
Mục nhật ký thay đổi
Nhật ký về một thay đổi đối với nội dung hoặc siêu dữ liệu của một tệp hoặc ổ đĩa dùng chung. Một mục nhập trong nhật ký thay đổi cho biết người dùng đã thực hiện thay đổi, dấu thời gian và một mã nhận dạng. Nhật ký thay đổi chỉ có thể có một mục nhập cho mỗi tệp hoặc bộ nhớ dùng chung tại một thời điểm. Mỗi khi tệp hoặc bộ nhớ dùng chung đó thay đổi, một mã nhận dạng mới sẽ được tạo cho mục đó và mã nhận dạng này sẽ thay thế mục trước đó.
Bản sửa đổi
Một phiên bản của tệp biểu thị một thay đổi đối với nội dung của tệp (không phải siêu dữ liệu). Bạn có thể truy cập vào từng phiên bản bằng cách sử dụng tài nguyên revisions trong Drive API.
Bản sửa đổi mới nhất
Phiên bản mới nhất của một tệp. Bạn có thể truy cập vào headRevisionId bằng tài nguyên files trong Drive API. headRevisionId chỉ dùng được cho tệp blob trong Drive.
Bản sửa đổi blob
Một phiên bản của tệp nhị phân không sửa đổi được, chẳng hạn như hình ảnh, video hoặc PDF. Nếu bản sửa đổi blob là bản sửa đổi duy nhất của tệp nhị phân, thì bạn không thể xoá bản sửa đổi đó. Bạn có thể tải một blob mới lên dưới dạng một phiên bản sửa đổi mới. Phiên bản này sẽ trở thành phiên bản sửa đổi mới nhất của tệp đó.
Mọi phiên bản tệp blob, ngoài phiên bản đầu, không được chỉ định là "Giữ vĩnh viễn" đều có thể bị xoá. Các phiên bản có thể xoá thường được lưu giữ trong 30 ngày, nhưng có thể bị xoá sớm hơn nếu một tệp có 100 phiên bản không được chỉ định là "Giữ vĩnh viễn" và một phiên bản mới được tải lên.
Nhật ký ghi lại tất cả các bản sửa đổi của một tệp theo thứ tự thời gian. Mỗi thay đổi đối với tệp Tài liệu, Trang tính hoặc Trang trình bày sẽ tạo ra một phiên bản mới. Mỗi khi nội dung thay đổi, Drive sẽ tạo một mục nhập mới trong nhật ký phiên bản cho tệp đó. Tuy nhiên, các bản sửa đổi tệp của trình chỉnh sửa này có thể được hợp nhất với nhau, vì vậy, phản hồi API có thể không cho thấy tất cả các thay đổi đối với một tệp.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-21 UTC."],[],[],null,["# Changes and revisions overview\n\nGoogle Drive maintains an automatic history of modifications, which can help\nusers track file changes and content revisions. In the revision history, users\ncan see what edits have been made and can revert to a specific version of a file\nwith specific edits.\n\nThe following terms are relevant to the changes and revisions resources of the\nGoogle Drive API:\n\n*Access Control List (ACL)*\n: The list of all permission resources associated with a file, folder, or shared\n drive.\n\n*Change*\n: An alteration made to a file's content or metadata of a file or shared drive.\n\n*User change log*\n\n: A record of all changes that a user made to every editable file in their My\n Drive, such as a Google Docs, Sheets, or a\n Slides. For members of a shared drive, the user change log\n also includes entries about shared drive membership, user access levels to\n items in that shared drive, and shared drive name changes.\n\n | **Note:** Even if several users can access the same file, not all changes to that file are reflected in every users' change log. For example, when a user opens the file for the first time, or marks the file as Starred, those changes only appear in that users' change log. As another example, when a file's ACL is changed, it's only reflected in the change log of the following users: The file's owner, any service accounts on the ACL, and any users directly impacted by the ACL change.\n\n*Shared drive change log*\n\n: A record of all changes to a shared drive, such as additions or removals of\n users, and all changes to items on that shared drive. A change to an item\n within a shared drive appears in both the *user change log* and shared drive\n change log.\n\n*Change log entry*\n\n: A record of a change made to a file's content or metadata of a file or shared\n drive. A change log entry indicates the user who made the change, the\n timestamp, and an ID. There can only be one entry per file or shared drive\n in the change log at a time. Each time that file or shared drive changes, a\n new ID is created for that entry, and it replaces the previous entry.\n\n*Revision*\n\n: A version of the file representing a change to the file's contents (not\n metadata). Each revision can be accessed using the [`revisions`](/workspace/drive/api/reference/rest/v3/revisions) resource within the Drive API.\n\n*Head revision*\n\n: The most current version of a file. The `headRevisionId` can be accessed using\n the [`files`](/workspace/drive/api/reference/rest/v3/files) resource within the\n Drive API. The `headRevisionId` is only available for blob files\n in Drive.\n\n*Blob revision*\n\n: A version of an unmodifiable binary file, such as an image, video, or PDF. If\n the blob revision is the only revision of the binary file, it cannot be\n deleted. A new blob can be uploaded as a new *revision* , which becomes the\n new *head revision* of that file.\n\n Any blob file revision, other than the head revision, that's not designated\n as \"Keep Forever\" is purgeable. Purgeable revisions are typically preserved\n for 30 days, but can be purged earlier if a file has 100 revisions that\n aren't designated as \"Keep Forever\" and a new revision is uploaded.\n\n For more information on setting blob revisions as \"Keep Forever\", see\n [Specify revisions to save from auto\n delete](/workspace/drive/api/guides/manage-revisions#specify-revisions).\n\n*Revision history*\n\n: A record of all revisions of a file in chronological order. A change to a\n Docs, Sheets, or Slides file\n gets a new revision. Each time the content changes, Drive\n creates a new revision history entry for that file. However, these editor\n file revisions may be merged together, so the API response might not show\n all changes to a file.\n\nRelated topics\n--------------\n\n- To identify where the change you want to track is recorded, see [Identify\n which change log to track](/workspace/drive/api/guides/about-changelogs).\n- To set up change tracking for users and shared drives, see [Track changes\n for users and shared drives](/workspace/drive/api/guides/about-changes).\n- To download a blob file content revision or to export a Google Workspace document content revision, see [Download and export\n files](/workspace/drive/api/guides/manage-downloads).\n- To publish a revision, see [Manage file\n revisions](/workspace/drive/api/guides/manage-revisions).\n- To set up change notifications, see [Notifications for resource changes](/workspace/drive/api/guides/push)."]]