On 11/17/26 3:43 PM, jbk wrote:
When trying to use the the BackupPC_ls utility in trying to provide some feed back for Ged I've discovered it is not working for me. Here is what I've found so far.

..
I'm not getting a listing when invoking the command as the backuppc user:

bash-5.1$ /usr/share/BackupPC/bin/BackupPC_ls -R -hlt14 -n80 -shome jbk/
jbk:

Here is that same directory listing using ls:

bash-5.1$ ls -la /var/lib/BackupPC/pc/lt14/80/f%2fhome/fjbk/
total 164
drwxr--r-- 41 backuppc backuppc 4096 Nov 16 06:21 .
drwxr--r--  3 backuppc backuppc 4096 Nov 16 06:21 ..
-rw-r-----  1 backuppc backuppc    0 Nov 16 06:21 attrib_e583567186e1525d9b1d89c27136b832
drwxr--r--  3 backuppc backuppc 4096 Oct 22 19:00 fbin
drwxr--r--  4 backuppc backuppc 4096 Oct 22 19:00 f.blender
drwxr--r--  8 backuppc backuppc 4096 Oct 22 19:00 f.claws-mail
drwxr--r-- 43 backuppc backuppc 4096 Nov 16 06:21 f.config
drwxr--r--  3 backuppc backuppc 4096 Oct 22 19:00 fDayJournal
drwxr--r--  3 backuppc backuppc 4096 Oct 22 19:00 f.dbus
drwxr--r--  2 backuppc backuppc 4096 Oct 22 19:00 fDesktop
drwxr--r--  3 backuppc backuppc 4096 Oct 22 19:00 f.dillo
drwxr--r--  4 backuppc backuppc 4096 Oct 22 19:00 fDocuments
..........

except for the attrib file there are just directories listed. If I browse the backup with the CGI I see all the files that are backed up.

After a little bit more testing I can summarize the BackupPC_ls behavior as follows.

It will complain if I enter a wrong host or backup # but not if I enter a bogus sharename and directory. I can't leave those fields blank as I'll get a usage error. If I enter a "*" for a directory name it will give a listing of the current working directory, "/etc/BackupPC/".

What should happen is that files should appear listed in a format similar to ls -l with the addition of a md5 digest for each non directory file item.

The backkuppc server is running on Rocky 9.8 and RHEL clone. The BackupPC components are:

BackupPC-XS-0.62-11.el9.x86_64
BackupPC-4.4.0-9.el9.x86_64
rsync-bpc-3.1.3.0-6.el9.x86_64

Any insight would be appreciated.

Oh, and there are no issues with the backups themselves, as I do random restores w/o owner/permission issues since 2008.

Per Ged I wasn't typing the shareName correctly based on the ls -l input

bash-5.1$ ls -la /var/lib/BackupPC/pc/lt14/80/f%2fhome ... notice the 2f in front of home and this from "man ascii":

The following table contains the 128 ASCII characters.

       C program '\X' escapes are noted.

       Oct   Dec   Hex   Char                        Oct   Dec  Hex   Char         057   47    2F    /                           157   111  6F    o

2f is the hex for forward slash, so the correct syntax is:

bash-5.1$ /usr/share/BackupPC/bin/BackupPC_ls  -hlt14 -n80 -s/home jbk
jbk:
-rw-------  1001/1001      25420 2019-11-16 12:55:50 jbk/.ICEauthority (c5035799597fa8882abe708002c53ac4) -rw-------  1001/1001        168 2024-11-16 17:58:17 jbk/.Xauthority (ec3b3d00f1801d824df96e2f9fe9e7e6) -rw-r--r--  1001/1001         79 2022-01-18 16:20:45 jbk/.Xresources (ccb554eba938f4d5edfcca7f4ea98ae1)

solved.

--
Jim KR

_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to