ARCHIVED

Fabian Peter Hammerle 98a8107318 forbid '/' in backup name since duplicity might show unexpected behaviour 10 лет назад
scripts 98a8107318 forbid '/' in backup name since duplicity might show unexpected behaviour 10 лет назад
.gitignore 498e61977f Initial commit 10 лет назад
LICENSE 498e61977f Initial commit 10 лет назад
README.md f85c9561bd added backup config option 'name' 10 лет назад
setup.cfg 7c9fc264ed added setup.cfg 10 лет назад
setup.py 09eef71fca added missing dependency 10 лет назад

README.md

duplitab

wrapper for duplicity featuring persistent backup configuration

Configuration

# /etc/duplitab
-   name: home at media backup
    source_path: /home
    target_url: file:///media/backup/home
    encryption: no
-   source_path: /secret/folder
    target_url: sftp://user@server//media/backup/secret
    encrypt_key: ABCDEFGH # gnupg
    # target_via_sshfs: true
-   source_path: /var/www
    target_url: file:///media/backup/web
    selectors:
    -   option: exclude
        shell_pattern: '**/cache'
    -   option: include
        shell_pattern: /var/www/src
    -   option: exclude
        shell_pattern: '**'
    encryption: no

Show Configuration

$ duplitab list --table-style tabular
source type      source host  source path     target url                               encrypt key
-------------  -------------  --------------  ---------------------------------------  -------------
local                         /home           file:///media/backup/home
local                         /secret/folder  sftp://user@server//media/backup/secret  ABCDEFGH
local                         /var/www        file:///media/backup/web
$ duplitab --filter-target-url '.*media/backup/[hs].*' list --table-style tabular
source type      source host  source path     target url                               encrypt key
-------------  -------------  --------------  ---------------------------------------  -------------
local                         /home           file:///media/backup/home
local                         /secret/folder  sftp://user@server//media/backup/secret  ABCDEFGH

Backup

$ duplitab backup
$ duplitab --filter-target-url '.*media/backup/[hs].*' backup