Welcome to Aaron Thompson's Page Monday, September 25 2017 @ 10:21 CDT  
Contact Info
probability project
Perl Modules
Win32::AD::User (cpan)
backup_file (source)
chkconfig (source)
gen-autohome (source)
group-utils (source)
mail-deny (source)
mail-logs (source | archive)
mailman-qmail (source)
qmail vacation (source)
Beast of Burden LLC
Central Iowa LUG
ITS Home
UNI Home


backup_file -- backup one or more files

    backup_file filename [filename1 filename2 ... filenameN]

backup_file provides a simple command-line tool for creating a backup of one or many files. If multiple files are given, or wild characters are used all files will be backed up. Each time a file is backed up with backup_file it creates a unique name for the backup file consisting of the date (YYYY-MM-DD) followed by a version number if there is more than one for the current date. For example:
  $ backup_file file && backup_file file
    'file' -> 'file-2003-02-01'
    'file' -> 'file-2003-02-01.0'
When backup_file is run without any files listed, it displays usage/license information.


backup_file does not accept any command line options. Every command line item (after the script name) is assumed to be a filename.

When listing files separate each filename by a space. You can use one or more filenames with either a relative or full path to the file. Wild-cards should work properly.


backup_file is minimally configurable, the following variables can be changed to fit your preferences.
      This defines the command and options used to get the date. Do not remove
      it from its back-tick quotes.

Report a Bug

If you find a bug please let me know email me at thompson@cns.uni.edu.

Download / Source

Copyright (C) 2003 Aaron Thompson

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. or visit http://www.gnu.org/copyleft/gpl.html

Click here to view the source code online

Click here to download the script