https://github.com/tadly/dups
Simple shell backup script
https://github.com/tadly/dups
backup bash duplicate sh shell
Last synced: about 1 month ago
JSON representation
Simple shell backup script
- Host: GitHub
- URL: https://github.com/tadly/dups
- Owner: tadly
- License: gpl-3.0
- Created: 2017-04-22T11:26:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-28T11:13:32.000Z (about 9 years ago)
- Last Synced: 2025-08-10T16:46:33.649Z (11 months ago)
- Topics: backup, bash, duplicate, sh, shell
- Language: Shell
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
dups
====
Simple shell script to backup (archive) files/directories to a local target while only keeping a set amount of generations.
## Usage
```
$ dups --help
usage: dups [options] [source [...]] [target]
Options:
-p [prefix] Prefix to add to the filename.
-s [suffix] Suffix to add to the filename.
-g [generations] Generations to keep.
Set to 0 to keep infinite.
Defaults to 3.
-y, --yes Don't ask for confirmation.
--install Install to system (/usr/bin/dups)
--uninstall Uninstall from system (/usr/bin/dups)
-v, --version Print version and exit
-h, --help Show this help text.
Notes:
- Deletion of old backups will take the prefix and suffix into
account. This means neither of these should be dynamic as
otherwise older version will not be deleted.
```
## Installation
### Manual
```sh
git clone https://github.com/Tadly/dups
./dups/dups --install
rm -rf ./dups
# To uninstall it again
dups --uninstall
```