项目作者: tadly

项目描述 :
Simple shell backup script
高级语言: Shell
项目地址: git://github.com/tadly/dups.git
创建时间: 2017-04-22T11:26:12Z
项目社区:https://github.com/tadly/dups

开源协议:GNU General Public License v3.0

下载


dups

Simple shell script to backup (archive) files/directories to a local target while only keeping a set amount of generations.

Usage

  1. $ dups --help
  2. usage: dups [options] [source [...]] [target]
  3. Options:
  4. -p [prefix] Prefix to add to the filename.
  5. -s [suffix] Suffix to add to the filename.
  6. -g [generations] Generations to keep.
  7. Set to 0 to keep infinite.
  8. Defaults to 3.
  9. -y, --yes Don't ask for confirmation.
  10. --install Install to system (/usr/bin/dups)
  11. --uninstall Uninstall from system (/usr/bin/dups)
  12. -v, --version Print version and exit
  13. -h, --help Show this help text.
  14. Notes:
  15. - Deletion of old backups will take the prefix and suffix into
  16. account. This means neither of these should be dynamic as
  17. otherwise older version will not be deleted.

Installation

Manual

  1. git clone https://github.com/Tadly/dups
  2. ./dups/dups --install
  3. rm -rf ./dups
  4. # To uninstall it again
  5. dups --uninstall