Package: obnam
Version: 1.6.1-1
Severity: wishlist

Thanks for this great backup tool.  It just saved me with my lost data which I
accidentally erased some time ago and did not notice it until recently.

Currently, "obnam mount / --viewmode=multiple" normally mounts them under
directory named after *genids*.  That is a great UI but it could be
even better.  Here is my wishlist bug. 

For example, I have 5 directories 5562 6005 6096 6536 7856

$ ls -la
total 36
drwxr-xr-x 51 osamu osamu 4096 Nov 24 01:27 .
drwxrwxr-x  6 osamu osamu 4096 Dec  8 22:16 ..
drwxr-xr-x 47 osamu osamu 4096 Nov 13 00:14 5562
drwxr-xr-x 47 osamu osamu 4096 Nov 13 00:36 6005
drwxr-xr-x 49 osamu osamu 4096 Nov 15 00:26 6096
drwxr-xr-x 49 osamu osamu 4096 Nov 16 23:40 6536
drwxr-xr-x 51 osamu osamu 4096 Nov 24 01:27 7856
lrwxr-xr-x 51 osamu osamu 4096 Nov 24 01:27 latest -> 7856
-r--r--r-- 51 osamu osamu 4096 Nov 24 01:27 .pid

Displaying this under a GUI program requires me to sort by time.  Not so
intuitive name to have since most program sorts by ASCII order as
default. 

As I understand, obnam keeps time stamp internally:
$ obnam generations
5562    2013-11-13 00:12:26 .. 2013-11-13 00:14:49 (182287 files, 10241144501 
bytes) 
6005    2013-11-13 00:17:54 .. 2013-11-13 00:36:51 (182294 files, 10240565599 
bytes) 
6096    2013-11-15 00:16:04 .. 2013-11-15 00:26:49 (183616 files, 10357344673 
bytes) 
6536    2013-11-16 23:28:25 .. 2013-11-16 23:40:09 (183983 files, 10402683766 
bytes) 
7856    2013-11-24 01:27:05 .. 2013-11-24 01:27:26 (181936 files, 10926641948 
bytes) 

If values of genids have different digits, ASCII sorting even gets
confusing like:

$ ls -la
total 76
drwxr-xr-x 25 root  root  4096 May  6  2013 .
drwxrwxr-x  6 osamu osamu 4096 Dec  8 22:16 ..
drwxr-xr-x 25 root  root  4096 Nov 17  2012 1025
drwxr-xr-x 25 root  root  4096 Dec 19  2012 1152
drwxr-xr-x 25 root  root  4096 Aug 25  2012 154
drwxr-xr-x 25 root  root  4096 Aug 25  2012 218
drwxr-xr-x 25 root  root  4096 Dec 30  2012 2323
drwxr-xr-x 25 root  root  4096 Jan 10  2013 2496
drwxr-xr-x 25 root  root  4096 Apr  2  2013 2674
drwxr-xr-x 25 root  root  4096 Aug 25  2012 312
drwxr-xr-x 25 root  root  4096 Apr  2  2013 3140
drwxr-xr-x 25 root  root  4096 May  6  2013 3582
drwxr-xr-x 25 root  root  4096 Sep  1  2012 464
drwxr-xr-x 25 root  root  4096 Sep  9  2012 619
drwxr-xr-x 25 root  root  4096 Sep 24  2012 718
drwxr-xr-x 25 root  root  4096 Oct  9  2012 822
drwxr-xr-x 25 root  root  4096 Oct 14  2012 927
lrwxr-xr-x 25 root  root  4096 May  6  2013 latest -> 3582
-r--r--r-- 25 root  root  4096 May  6  2013 .pid

(I know I can use "ls -lt" for the command line but I hope you
understand.)

So I wish to have mount points named with the timestamp text.  It can be
in any timestamp format which is ASCII sort-able.  If you ask me, I
suggest one of the standard ones used by "ls" or "date".  I mean:

$ date -u --rfc-3339=seconds
2013-12-08 14:15:02+00:00
$ date -u --iso-8601=seconds
2013-12-08T14:15:12+0000
$ TZ="GMT+0" ls -l --time-style=long-iso ~/.bashrc
-rw-rw-r-- 1 osamu osamu 3389 2013-12-01 14:30 /home/osamu/.bashrc

or simply like using UT and just with normal characters:
2013-12-08-141512

The option name to activate this feature can be something like

--viewmode=multiple-time
 (my wishlist as above)
 2013-12-08-141512
I also wish to have similar things like:
--viewmode=multiple
 (current behavior)
 2323
--viewmode=multiple-id  
 (almost same as multiple but zero padded in front to make it sort-able)
 0002323
--viewmode=multiple-time-id
 2013-12-08-141512_0002323 (for time=2013-12-08-141512 id=2323

I think actual format may needs a bit more thinking. I hope you can
come up with some intuitive string format.

Regards,

Osamu

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages obnam depends on:
ii  libc6             2.17-97
ii  python            2.7.5-5
ii  python-cliapp     1.20130808-1
ii  python-fuse       2:0.2.1-8
ii  python-larch      1.20131130-1
ii  python-paramiko   1.10.1-1
ii  python-tracing    0.6-2
ii  python-ttystatus  0.23-1

obnam recommends no packages.

obnam suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to