https://github.com/akalongman/sublimetext-autobackups
Cấu hình tùy chọn:
{
// Don't make changes to this file directly as they can get wiped out when the
// plugin is updated. Instead transfer what you need to the 'Settings - User' file.
// The directory where we'll keep our backups. If empty, we'll try to put them in
// ~/sublime_backups
"backup_dir": "~/sublime_backups",
// If true, also save a backup copy any time a file is opened (if backup file not exists)
"backup_on_open_file": true,
// If true, backups saved per day, in separate folders, for example ~/sublime_backups/2013-05-23/myfile.php
"backup_per_day": true,
// If set, backups saved per second. possible values: false, "folder" or "file"
// false - disabled backup per second
// "folder" - backup example D:/Sublime Text Backups/2013-05-23/095034/myfile.php
// "file" - backup example D:/Sublime Text Backups/2013-05-23/myfile_095034.php
// to use this feature, you must have enabled backup_per_day setting
"backup_per_time": "file",
// Files larger than this many bytes won't be backed up.
"max_backup_file_size_bytes": 262144, // = 256 KB
// Files older than X days will be deleted. If 0 - auto delete disabled
"delete_old_backups": 0, // days to delete
// If true, backup file opened in same line as cursor in original file
"open_in_same_line": true,
// If true, show backup previews (only in ST3)
"show_previews": true
}
Nguồn
2014-06-10 15:18:10
Hết sức tò mò, tính năng đồng bộ hóa hoạt động như thế nào? Ví dụ, nó chỉ đồng bộ các tập tin được thay đổi trên thư mục nguồn? Điều gì sẽ xảy ra nếu các tệp tại đích được thay đổi? Họ sẽ bị ghi đè? Lý do tôi hỏi là tôi sẽ sử dụng nó để sao chép các tập tin từ thư mục nguồn dự án (dưới sự kiểm soát phiên bản) sang máy chủ web. Bản sao máy chủ web sẽ có nhiều tệp được tạo (ví dụ: hình ảnh, tệp nhật ký v.v.) mà tôi không muốn xóa vì nguồn dự án là sạch sẽ/không có bất kỳ tệp nào được tạo ... – Prembo
Đây chính xác là những gì tôi cần ! Cảm ơn! – Paul