View on GitHub

rsync-backup

versatile rsync based backup scripts with minimal dependencies

Download this project as a .zip file Download this project as a tar.gz file

BACKUP-MAKE-TAG


NAME

backup-make-tag - construct a new backup directory name

SYNOPSIS

backup-make-tag

<OPTION>... [<ALT-DIR>]...

DESCRIPTION

Construct a new backup backup directory name based on date and time and the names of the existing backup directories.

OPTIONS

-h, --help[=<FORMAT>]

Show this help message and exit.

-V, --version

Show version information and exit.

--tag-format <FORMAT>

Set the date format to be used when constructing a backup directory name for a new backup.

--tag-name <NAME>

Set the name to be used when constructing a backup directory name for a new backup.

OPERANDS

<ALT-DIR>

An alternative directory containing existing backup directories.

FILES

./<YEAR>

A yearly backup directory.

./<YEAR>[-]<MONTH>

A monthly backup directory.

./<YEAR>[-]W<WEEK>

A weekly backup directory.

./<YEAR>[-]<MONTH>[-]<DAY>

A daily backup directory.

./<YEAR>[-]W<WEEK>[-]<DAY>

A daily backup directory.

./<YEAR>[-]<MONTH>[-]<DAY>T<HOUR>

An hourly backup directory.

./<YEAR>[-]W<WEEK>[-]<DAY>T<HOUR>

An hourly backup directory.

./<YEAR>[-]<MONTH>[-]<DAY>T<HOUR>[:]<MINUTE>

A minutely backup directory.

./<YEAR>[-]W<WEEK>[-]<DAY>T<HOUR>[:]<MINUTE>

A minutely backup directory.

./<YEAR>[-]<MONTH>[-]<DAY>T<HOUR>[:]<MINUTE>[:]<SECOND>

A secondly backup directory.

./<YEAR>[-]W<WEEK>[-]<DAY>T<HOUR>[:]<MINUTE>[:]<SECOND>

A secondly backup directory.

./conf/tag-formats

An optional configuration file containing date formats to be used when constructing a backup directory name for a new backup. Empty lines and comment lines (starting with a "#") are allowed, too. Each date format is tried in turn in order specified until a non-existing backup directory is found.

COPYRIGHT

Copyright © 2010 - 2024 Eero Häkkinen <Eero+rsync-backup@Häkkinen.fi>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

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, see <http://www.gnu.org/licenses/>.

SEE ALSO

backup-create(1), backup-help(1), backup-rsync(1)
Home page