File: issue781.sh

package info (click to toggle)
duplicity 3.0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,260 kB
  • sloc: python: 25,089; sh: 934; ansic: 392; makefile: 83
file content (28 lines) | stat: -rwxr-xr-x 630 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

cd `dirname $0`/../..

export PYTHONPATH=`pwd`
export PASSPHRASE=foo

alias duplicity=duplicity/__main__.py

for t in 'mirror' 'stripe'; do
    for i in $(seq 3); do
        duplicity full \
                  --no-encryption \
                  /etc/hosts \
                  "multi:///`pwd`/testing/regression/issue781.json?mode=$t"
        sleep 1
    done

    duplicity  remove-all-but-n-full 1 \
               --verbosity 9 \
               --no-encryption \
               "multi:///`pwd`/testing/regression/issue781.json?mode=$t" \
               --force

    ls -l /tmp/*_drive

    rm -rf /tmp/*_drive
done