All Projects → akalongman → sublimetext-autobackups

akalongman / sublimetext-autobackups

Licence: MIT license
Sublime Text 2/3 Auto backups plugin

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to sublimetext-autobackups

Packagesync
Sync sublime text packages & user settings across devices.
Stars: ✭ 63 (-10%)
Mutual labels:  backup, sublime-text
shelvery-aws-backups
Automating EBS RDS EC2 backups on lambda
Stars: ✭ 31 (-55.71%)
Mutual labels:  utility, backup
couchbackup
CouchDB backup and restore command-line utility.
Stars: ✭ 15 (-78.57%)
Mutual labels:  utility, backup
transee
Simple and useful tool for quick translation
Stars: ✭ 65 (-7.14%)
Mutual labels:  utility
ee-x
Cross-platform library for Cocos2d-x and Unity
Stars: ✭ 13 (-81.43%)
Mutual labels:  utility
ceiba-dl
NTU CEIBA 資料下載工具
Stars: ✭ 80 (+14.29%)
Mutual labels:  backup
sublime-meetio-theme
The most powerful and adaptive theme for Sublime Text 3
Stars: ✭ 71 (+1.43%)
Mutual labels:  sublime-text
cya
Easy to use snapshot and restore utility for any Linux (Unix) OS and filesystem powered by BASH
Stars: ✭ 73 (+4.29%)
Mutual labels:  backup
actlist
📦 Actlist is a utility platform to execute your own action list easily and simply.
Stars: ✭ 85 (+21.43%)
Mutual labels:  utility
Cake
Yummy syntax theme for Atom, Brackets, Sublime Text and Visual Studio Code
Stars: ✭ 47 (-32.86%)
Mutual labels:  sublime-text
sublime-angular-material-snippets
Angular Material Design snippets plugin for Sublime Text 2/3
Stars: ✭ 25 (-64.29%)
Mutual labels:  sublime-text
1History
All your history in one file.
Stars: ✭ 335 (+378.57%)
Mutual labels:  backup
SaneSnippets
Sublime Text snippets optimized for humans, not robots
Stars: ✭ 59 (-15.71%)
Mutual labels:  sublime-text
zephir-sublime
Sublime Text syntax highlighting for for Zephir
Stars: ✭ 41 (-41.43%)
Mutual labels:  sublime-text
sublime-font-cycler
Quickly cycle between your favorite fonts in Sublime Text with the press of a key
Stars: ✭ 19 (-72.86%)
Mutual labels:  sublime-text
YinWangBak
A collection of articles written by YinWang
Stars: ✭ 87 (+24.29%)
Mutual labels:  backup
autocommand
Autocommand turns a python function into a CLI program
Stars: ✭ 44 (-37.14%)
Mutual labels:  utility
utools-recent-projects
uTools 插件, 快速查询最近打开的项目
Stars: ✭ 84 (+20%)
Mutual labels:  sublime-text
zpaqfranz
Deduplicating archiver with encryption and paranoid-level tests. Swiss army knife for the serious backup and disaster recovery manager. Ransomware neutralizer. Win/Linux/Unix
Stars: ✭ 86 (+22.86%)
Mutual labels:  backup
kubernetes-basico
Demonstração dos componentes do Kubernetes
Stars: ✭ 26 (-62.86%)
Mutual labels:  utility

sublimetext-autobackups

Sublime Text 2/3 Auto backups plugin

AutoBackups is a Sublime Text 2/3 plugin, which automatically save a backup copy every time you save or open (if backup file not exists) a file. (Like DreamWeaver.. No, better than DreamWeaver)

When you edit text files (scripts, prose, whatever) you often find yourself wishing for an last version. Ever accidentally deleted a chunk from an important configuration file, or wished you could roll back a document a few hours? This plugin takes a copy of file you open/save and copies it into a backup directory structure, ensuring that you never lose an old version of a file. If enabled setting backup_per_day backups will be saved for each day. If enabled setting backup_per_time backups will be saved for each save.

Sponsors

No sponsors yet.. :(

If you like the software, don't forget to donate to further development of it!

PayPal donate button

Configuration

To change plugin configuration, access the plugin's settings in Preferences->Package Settings->AutoBackups.

Configuration options:

{
  // 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
  // D:/Sublime Text Backups
  "backup_dir": "D:/Sublime Text 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 D:/Sublime Text 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

  // ignore files/folders which match regexes
  "ignore_regexes": [
    // VCS folders
    "/\\.svn/", "/\\.hg/", "/\\.git/", "/\\.bzr/"
    // binary extensions
    ,"\\.(jpg|JPG|jpeg|JPEG|pjpeg|PJPEG|gif|GIF|png|PNG|apng|APNG|bmp|BMP|mp3|MP3|mid|MID|wav|WAV|au|AU|mp4|MP4|3gp|3GP|avi|AVI|wmv|WMV|mpeg|MPEG|mpg|MPG|mkv|MKV|swf|SWF|flv|FLV|zip|ZIP|rar|RAR|tar|TAR|tgz|TGZ|gz|GZ|bz2?|BZ2?|pdf|PDF|docx?|DOCX?|xlsx?|XLSX?|pptx?|PPTX?|rtf|RTF|psd|PSD|cdr|CDR|fla|FLA|exe|EXE)$"
  ],

  // 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
}

Installation

With the Package Control plugin: The easiest way to install AutoBackups is through Package Control, which can be found at this site: https://sublime.wbond.net/installation

Once you install Package Control, restart Sublime Text and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select "Package Control: Install Package", wait while Package Control fetches the latest package list, then select AutoBackups when the list appears. The advantage of using this method is that Package Control will automatically keep AutoBackups up to date with the latest version.

Without Git: Download the latest source from GitHub and copy the AutoBackups folder to your Sublime Text "Packages" directory.

With Git: Clone the repository in your Sublime Text "Packages" directory:

git clone https://github.com/akalongman/sublimetext-autobackups.git AutoBackups

The "Packages" directory is located at:

  • OS X:
    • ST2 ~/Library/Application Support/Sublime Text 2/Packages/
    • ST3 ~/Library/Application Support/Sublime Text 3/Packages/
  • Linux:
    • ST2 ~/.config/sublime-text-2/Packages/
    • ST3 ~/.config/sublime-text-3/Packages/
  • Windows:
    • ST2 %APPDATA%/Sublime Text 2/Packages/
    • ST3 %APPDATA%/Sublime Text 3/Packages/

To see if plugin working, open the console with the View->Show Console menu item. When you save a file, you should see a line like this, indicating that the file has been backed up:

Backup saved to: D:/Sublime Text Backups/2013-05-23/myfile_095034.php

Backup size considerations

To prevent your backup folder from growing too large, check out the max_backup_file_size_bytes and delete_old_backups setting in Preferences->Package Settings->AutoBackups.

Keybindings

To open current file backup, use cmd+alt+b keybinding, or in quick panel type AutoBackup: Open file backup

Contributing

Anyone and everyone is welcome to contribute. Please take a moment to review the CONTRIBUTING.md guidelines for information.

Credits

Credit list in CREDITS

This code is available on Github. Pull requests are welcome.

Created by Avtandil Kikabidze.

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].