Azazia Software Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

VI editor Backup (VIB) Utility

Add comment
Views: 784
Votes: 0
Comments: 0
Posted: 20 Aug, 2008
by: Patridge B.
Updated: 20 Aug, 2008
by: Patridge B.
CURRENT RELEASE: v1.9

Download VIB Here

INSTALLATION:

1. Verify the path to bash or ksh is the path on the first line of VIB
i.e. #!/usr/bin/bash

# cp vib /usr/local/bin

# alias vi='/usr/local/bin/vib
*note: It is recommended to add this parameter to your SHELL profile: i.e. .bashrc ,.profile ,

Installation complete!

#./vib

USAGE:

#########################################
VI Editor Backup Utility: (VIB)
#########################################
usage:
     vi <filename>
OR
     vi <path_to_filename>/<filename>
readme:
     vi [-?][/?][-h][-help][--h][--help]
#########################################

REQUIREMENTS:

This script runs in BASH or KSH

VI Editor must be aliased to vib (i.e. alias vi='/usr/local/bin/vib')


FEATURES:

1. Keeps backup of all files to either the current directory in the ".backup" directory (configurable parameter)

OR

Keeps backups in a specified "backup" directory

2. Keeps up to $MAX number of backups per file; (configurable parameter)

3. Keeps a log of all file changes to /var/log/vib-history.log; (configurable parameter)

4. Rotates the /var/log/vib-history.log if filesize > 30Meg; (configurable parameter)

5. Allows you to include the file path in the backup file filename; (configurable parameter)

6. Allows you to either commit changes or roll back changes before saving the file after editing it with VI.

7. Allows you to configure to automatically save all changes; (i.e. no prompts)


Others in this Category
document E:Lists directory /var/lib/apt/lists/partial is missing.
document Regular Expression to Escape all Illegal (non alphanumeric) Characters Except a space
document Quick One liners to test a string whether or not it is an Integer, Alphanumeric, or Character
document Using Awk to display a directory listing on files with spaces until the end of line
document UNIX Command Line way to convert HEX ascii codes to Text
document Restoring the cursors last position in the VI (VIM) editor
document Postfix/Sendmail Errors: NOQUEUE: reject: RCPT .... Relay access denied DSN: Service unavailable
document Display path, user name, and host name next to the cursor in the .bashrc or .bash_profile
document Little script to make process searching easier
document Create an SFTP account that will restrict the user only to their destination home directory so they cannot change directory (cd) or view any other files outside of that directory.
document Recompile apache2 to support LDAP on Solaris 10
document SVN Solaris 10: ld: fatal: Symbol referencing errors. No output written to .libs/svn
document SVN Solaris 10: ld.so.1: svnversion: fatal: libssl.so.0.9.8: open failed: No such file or directory
document Solaris 10: commit failed: svn: Couldn't perform atomic initialization
document Creating a UNIX sparse file on an Isilon system



RSS