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)