Skip to content

A shell script that creates a backup of a file with the modification date in the filename, i.e. filename.YYYYMMDD.hhmm.bak

License

Notifications You must be signed in to change notification settings

nsaintarnaud/nbk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nbk

A shell script that creates a backup of a file with the modification date in the filename: filename.YYYYMMDD.hhmm.bak

Useful for taking snapshots of config files, /etc files, etc.

Works under *nix and OSX. Accepts wildcards.

Example:

  • $ ls -laF config
  • -rw-r--r-- 1 nsa staff 572 Sep 21 2011 config
  • $ nbk config
  • $ ls -laF config*
  • -rw-r--r-- 1 nsa staff 572 Sep 21 2011 config
  • -rw-r--r-- 1 nsa staff 572 Sep 21 2011 config.20110921.1853.bak

About

A shell script that creates a backup of a file with the modification date in the filename, i.e. filename.YYYYMMDD.hhmm.bak

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages