Meta Schima | 3 Sep 04:30 2015

Re: On replacing tar, why not dar ?

People have made some python bindings to dar, but re-implementing dar in python is probably not feasible.

> -----Original Message-----
> From: edgar.soldin <at> web.de
> Sent: Mon, 31 Aug 2015 11:35:12 +0200
> To: duplicity-talk <at> nongnu.org
> Subject: Re: [Duplicity-talk] On replacing tar, why not dar ?
> 
> On 31.08.2015 02:50, Meta Schima wrote:
>> Hello,
>> 
>>     In regards to:
>> 
>> http://duplicity.nongnu.org/new_format.html
>> 
>>     Why not use the dar archive ? It was specifically designed to
>> replace tar, and adds all the features that you want:
>> 
>> https://en.wikipedia.org/wiki/Dar_%28disk_archiver%29
>> http://dar.linux.free.fr/
>> 
>>     It has also been in development for 10 years so is mature.
>> 
>>     Just a suggestion.
>> 
> 
> tar is available as plain python module. are you aware of a python dar
> implementation?
> 
> ..ede/duply.net
(Continue reading)

Matt Chipman | 2 Sep 08:16 2015
Picon

backups larger than source

Greetings,

backing up a "Backuppc" store to a qnap device and the backups are huge.

As a test, started with a 2.6GB Backuppc directory and after 1 hour, the backup is still running and the backup size is now ~20GB.

System is Debian 8

tried Version 6.24 and 6.26 with the same result.  Tried with encryption and without, same result.

About to try Duplicity 7 and see how that goes but it seems I am missing something.

current command line
/usr/local/bin/duplicity --no-encryption /var/lib/backuppc/pc/wiki scp://admin <at> 192.168.60.35///share/CACHEDEV1_DATA/AUdcbkp01

I am wondering if Duplicity is seeing all the links in the backuppc directory and going round in circles?

any hints much appreciated.

cheers

-Matt
_______________________________________________
Duplicity-talk mailing list
Duplicity-talk <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Jelle de Jong | 1 Sep 15:07 2015
Picon

how do I know what --name to pick from my duplicity cache

Hello everybody,

When doing a recovery I would like to use the cache that is already on
the machine, mine looks like the following:

https://paste.debian.net/plainh/bb9a2c4b

How do I know what --name to use for the duplicity archive I want to
recover from?

The man page suggest it is some kind of hash, how can I reverse check this?

Kind regards,

Jelle de Jong
Meta Schima | 31 Aug 02:50 2015

On replacing tar, why not dar ?

Hello,

    In regards to:

http://duplicity.nongnu.org/new_format.html

    Why not use the dar archive ? It was specifically designed to replace tar, and adds all the features that you want:

https://en.wikipedia.org/wiki/Dar_%28disk_archiver%29
http://dar.linux.free.fr/

    It has also been in development for 10 years so is mature.

    Just a suggestion.

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth
RJ Sawyer | 29 Aug 20:27 2015
Picon
Picon

Help with --exclude-filelist

Hello all:

Duplicity seems to do everything I want it to, excluding one thing. I am
trying to use --exclude-filelist to exclude a list of directories, but I
don't know how to use it correctly.

duplicity --include /home/rj --exclude-filelist=exclude.txt  -v 8 full
/home/rj/ "file:///media/rj/RJ 5"

is the command I am trying to use, and the directories are in
exclude.txt, each on a new line and in the format 'Docuemnts/Stuff/'
without quotes.

Any help would be appriciated

Thanks
--

-- 
RJ Sawyer
PGP Key: 6E8B108D

_______________________________________________
Duplicity-talk mailing list
Duplicity-talk <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Peter.Hine | 28 Aug 05:06 2015
Picon

parser.add_option --time-format [SEC=UNCLASSIFIED]


I'm just playing at the moment, learning things.

In global.py, i've added the following line after time_separator
time_format = "%a %b %d %H" + time_separator + "%M" + time_separator + "%S
%Y"

and in dup_time.py, changed timetopretty
from :
def timetopretty(timeinseconds):
    """Return pretty version of time"""
    return time.asctime(time.localtime(timeinseconds))

to :
def timetopretty(timeinseconds):
    """Return pretty version of time"""
    #return time.asctime(time.localtime(timeinseconds))
    return time.strftime(globals.time_format, time.localtime
(timeinseconds))

this effectively moves the formatting over to the variable : "time_format"

altering the value in globals.py for time_format and rerunning
collection-status; it can be shown that the variable time_format is
working.

#########################
So the actual question, how do i get it to be a command line option
(disregarding the config file option for the moment)

I've tried a few things, but i really don't know what i'm doing with python
    parser.add_option("--time-format", action="store_const", const=str,
dest="time-format")
yields the error "Command line error: Expected 1 args, got 2" when i used
--time-format '%Y %b %d %H:%M:%S' or "%Y %b %d %H:%M:%S" or "
%Y:%b:%d:%H:%M:%S"

the second argument appears to be the "target_url" as the following seems
to imply
duplicity --time-format '%Y:%b:%d:%H:%M:%S' collection-status
scp://backup <at> backup:54321//backup/
Command line error: Expected 2 args, got 3

thanks

Peter Hine
Senior Technical Support Engineer (Servers)
FCoA ITS
peter.hine <at> familycourt.gov.au

**********************************************************************
The information contained in this e-mail (including any attachments) 
is for the exclusive use of the addressee. If you are not the intended 
recipient please notify the sender immediately and delete this e-mail. 
It is noted that legal privilege is not waived because you have read 
this e-mail.
**********************************************************************
Peter.Hine | 28 Aug 02:48 2015
Picon

duplicity in openSUSE [SEC=UNCLASSIFIED]


Does any one know how the duplicity code gets into openSUSE ?

http://download.opensuse.org/repositories/Archiving:/Backup/openSUSE_13.2/x86_64/duplicity-0.7.02-43.1.x86_64.rpm
http://download.opensuse.org/repositories/Archiving:/Backup/openSUSE_Factory/x86_64/duplicity-0.7.02-43.6.x86_64.rpm

http://download.opensuse.org/repositories/openSUSE:/Factory/standard/x86_64/duplicity-0.7.02-1.2.x86_64.rpm

thanks

Peter Hine
Senior Technical Support Engineer (Servers)
FCoA ITS
peter.hine <at> familycourt.gov.au

**********************************************************************
The information contained in this e-mail (including any attachments) 
is for the exclusive use of the addressee. If you are not the intended 
recipient please notify the sender immediately and delete this e-mail. 
It is noted that legal privilege is not waived because you have read 
this e-mail.
**********************************************************************
Grant | 27 Aug 23:12 2015
Picon

File restore extremely slow

Restoring an 85kb file like this took about 30 minutes:

# duplicity --tempdir /root --use-agent --encrypt-key=........
--sign-key=........ -t 7D --file-to-restore path/to/file.txt
file:///backups /home/user/file.txt

Would a 1MB file take 11 or so times longer?  Is there any way to speed that up?

- Grant
Peter.Hine | 25 Aug 07:18 2015
Picon

listing files in a backup session [SEC=UNCLASSIFIED]


Hi,

If i run a collection-status i get an output like :

 Type of backup set:                            Time:      Num volumes:
                Full         Sun Aug 23 21:00:03 2015               334
         Incremental         Mon Aug 24 21:00:03 2015                 8
         Incremental         Tue Aug 25 10:07:23 2015                 2
         Incremental         Tue Aug 25 11:36:50 2015                 1
         Incremental         Tue Aug 25 13:25:46 2015                 1
         Incremental         Tue Aug 25 13:36:52 2015                 1
         Incremental         Tue Aug 25 13:37:59 2015                 1

If i try and see what the 8 files in the first incremental are using
	duplicity list-current-files -t "Mon Aug 24 21:00:03 2015"
scp://backup <at> backup:54321//backup/
I get the following error
	duplicity: error: Bad time string "Mon Aug 24 21:00:03 2015"

so a few things,

how do i get the collection-status to output a date that is suitable for
copy/paste straight back into itself.

how do i see what those eight files (directories ??) are ?

just looking to make instructions for restores so it can seem a bit more
straight forward.
so far it is looking complex to try to find and restore a file (or
directory) that is NOT the current version.

thanks

Peter Hine
Senior Technical Support Engineer (Servers)
FCoA ITS
peter.hine <at> familycourt.gov.au

**********************************************************************
The information contained in this e-mail (including any attachments) 
is for the exclusive use of the addressee. If you are not the intended 
recipient please notify the sender immediately and delete this e-mail. 
It is noted that legal privilege is not waived because you have read 
this e-mail.
**********************************************************************
Peter.Hine | 25 Aug 04:29 2015
Picon

backup - Duplicity: How to list versions of a file? . [SEC=UNCLASSIFIED]


Hi i was wondering if this (or something similar) has been implemented.

serverfault.com/questions/345056/duplicity-how-to-list-versions-of-a-file
this was back in 2011.

thanks

Peter Hine
Senior Technical Support Engineer (Servers)
FCoA ITS
peter.hine <at> familycourt.gov.au

**********************************************************************
The information contained in this e-mail (including any attachments) 
is for the exclusive use of the addressee. If you are not the intended 
recipient please notify the sender immediately and delete this e-mail. 
It is noted that legal privilege is not waived because you have read 
this e-mail.
**********************************************************************
Sune Mølgaard | 17 Aug 12:58 2015

PyDrive URL example

Hi there,

Until recently, I ran my own modification of the pydrive backend,
wherein I believe I used an URL akin to pydrive://user <at> gmail.com/folder.

Switching to gdocs://user <at> gmail.com/folder now results in the following
output, and then nothing happens - note that the backtrace results from
hitting C-c.

Is the URL pattern wrong, or should I post an anonymized
client_secrets.json?

Best regards,

Sune Mølgaard

root <at> jadis:~/bin# ./backup_incremental.sh
Using archive dir: /root/.cache/duplicity/c99bbd8e462f102d3e204a4c3dcbb454
Using backup name: c99bbd8e462f102d3e204a4c3dcbb454
Import of duplicity.backends.azurebackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cfbackend Succeeded
Import of duplicity.backends.copycombackend Succeeded
Import of duplicity.backends.dpbxbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.hubicbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.lftpbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.megabackend Succeeded
Import of duplicity.backends.multibackend Succeeded
Import of duplicity.backends.ncftpbackend Succeeded
Import of duplicity.backends.onedrivebackend Succeeded
Import of duplicity.backends.par2backend Succeeded
Import of duplicity.backends.pydrivebackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ssh_paramiko_backend Succeeded
Import of duplicity.backends.ssh_pexpect_backend Succeeded
Import of duplicity.backends.swiftbackend Succeeded
Import of duplicity.backends.sxbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
^CTraceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 875, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 835, in flush
    self.stream.flush()
IOError: [Errno 32] Broken pipe
Logged from file log.py, line 90
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 875, in emit
    self.flush()
  File "/usr/lib/python2.7/logging/__init__.py", line 835, in flush
    self.stream.flush()
IOError: [Errno 32] Broken pipe
Logged from file log.py, line 90

root <at> jadis:~/bin#

--

-- 
Democracy is the theory that the common people know what they want and
deserve to get it good and hard.
- H. L. Mencken

_______________________________________________
Duplicity-talk mailing list
Duplicity-talk <at> nongnu.org
https://lists.nongnu.org/mailman/listinfo/duplicity-talk

Gmane