backintime icon indicating copy to clipboard operation
backintime copied to clipboard

Gocrypt backup of /root, probably works, but GUI shows no /root folder in fileview (CachyOS)

Open stant opened this issue 7 months ago • 8 comments

the usb drive is mounted. there is space taken on the usb drive. in the usb drive there are gocrypt files.

i can go into the gocrypt mount folder and see files:

./root/1/20260409-181251-595/backup/net2/system/home/stan/netbeans/26/index/s556/java/15/attributes.properties
./root/1/20260409-181251-595/backup/net2/system/home/stan/netbeans/26/index/s556/java/15/timestamps.properties
./root/1/20260409-181251-595/backup/net2/system/home/stan/netbeans/26/index/s556/java/15/sources
^C
[root@stan-laptop stan-laptop]# mount | grep gocryptfs
/run/media/stan/0d6e9699-2c7c-4548-993d-7902216fe1fb on /root/.local/share/backintime/mnt/37792BAD/mountpoint type fuse.gocryptfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,max_read=1048576)
[root@stan-laptop stan-laptop]# pwd
/root/.local/share/backintime/mnt/37792BAD/mountpoint/backintime/stan-laptop

but the gui does not show files. see picture

Image Image
{
    "backintime": {
        "name": "Back In Time",
        "version": "1.6.1",
        "running-as-root": true,
        "latest-config-version": 6,
        "local-config-file": "/root/.config/backintime/config",
        "local-config-file-found": true,
        "global-config-file": "/etc/backintime/config",
        "global-config-file-found": false,
        "started-from": "/usr/share/backintime/common",
        "user-callback": "/root/.config/backintime/user-callback",
        "keyring-supported": false
    },
    "host-setup": {
        "OS": {
            "/etc/os-release": "CachyOS",
            "/etc/arch-release": "\n",
            "/etc/lsb-release": "DISTRIB_ID=cachyos\nDISTRIB_RELEASE=\"rolling\"\nDISTRIB_DESCRIPTION=\"CachyOS\"\n"
        },
        "platform": "Linux-6.18.21-1-cachyos-lts-x86_64-with-glibc2.43",
        "system": "Linux #1 SMP PREEMPT_DYNAMIC Wed, 08 Apr 2026 13:11:12 +0000",
        "XDG_SESSION_TYPE": "(not set)",
        "XDG_CURRENT_DESKTOP": "KDE",
        "DESKTOP_SESSION": "(not set)",
        "locale": "en_US, UTF-8",
        "PATH": "/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
    },
    "python-setup": {
        "python": "3.14.3 main Feb 18 2026 14:35:05 CPython GCC 15.2.1 20260209",
        "python-executable": "/usr/bin/python",
        "python-executable-symlink": true,
        "python-executable-resolved": "/usr/bin/python3.14",
        "sys.path": [
            "/usr/share/backintime/qt/plugins",
            "/usr/share/backintime/common/plugins",
            "/usr/share/backintime/plugins",
            "/usr/share/backintime/common",
            "/usr/share/backintime/qt",
            "/usr/lib/python314.zip",
            "/usr/lib/python3.14",
            "/usr/lib/python3.14/lib-dynload",
            "/usr/lib/python3.14/site-packages"
        ],
        "qt": {
            "Version": "PyQt 6.11.0 / Qt 6.11.0",
            "Theme": "breeze",
            "Theme Search Paths": [
                "/usr/share/icons",
                ":/icons"
            ],
            "Fallback Theme": "breeze",
            "Fallback Search Paths": []
        }
    },
    "external-programs": {
        "RSYNC_OLD_ARGS": "(not set)",
        "RSYNC_PROTECT_ARGS": "(not set)",
        "rsync": {
            "version": "3.4.1",
            "protocol": "32.0",
            "capabilities": "file_bits: 64; inum_bits: 64; timestamp_bits: 64; long_int_bits: 64; socketpairs: True; symlinks: True; symtimes: True; hardlinks: True; hardlink_specials: True; hardlink_symlinks: True; IPv6: True; atimes: True; batchfiles: True; inplace: True; append: True; ACLs: True; xattrs: True; secluded_args: optional; iconv: True; prealloc: True; stop_at: True; crtimes: False",
            "optimizations": "SIMD_roll: True; asm_roll: False; openssl_crypto: True; asm_MD5: False",
            "checksum_list": "xxh128, xxh3, xxh64, md5, md4, sha1, none",
            "compress_list": "zstd, lz4, zlibx, zlib, none",
            "daemon_auth_list": "sha512, sha256, sha1, md5, md4"
        },
        "ssh": "OpenSSH_10.3p1, OpenSSL 3.6.2 7 Apr 2026",
        "sshfs": "3.7.5",
        "encfs": "(no encfs)",
        "shell": "/usr/bin/bash",
        "shell-version": "GNU bash, version 5.3.9(1)-release (x86_64-pc-linux-gnu)"
    }
}

stant avatar Apr 10 '26 00:04 stant

at: /root/.local/share/backintime/mnt/37792BAD

cp ./mountpoint/backintime/stan-laptop/root/1/20260409-181251-595/backup/net2/system/home/stan/netbeans/26/index/s525/java/15/attributes.properties /tmp

cat /tmp/attributes.properties 
#
#Sat Jun 21 13:17:52 EDT 2025
source=false

it looks like i can use the file in the gocrypt mount. maybe the GUI is not looking in the right place or has relative paths wrong...?

stant avatar Apr 10 '26 00:04 stant

Hello Stan,

Thank you for taking the time to report the bug and providing the details. I appreciate your feedback, will investigate the issue, and work on a solution to the best of my ability.

I have not tried to reproduce the issue. But I am assuming you are correct in your diagnosis. The gocryptfs component is quit fresh in the codebase and might have several bugs.

I won't go further in analyzing this because I am in the middle of writing a new mount subsystem from scratch. See PR #2449 to monitor the progress. It will take several weeks to tie everything together and merge it into the dev branch.

But I'll keep the Issue open. I'll rethink and evaluate it later how relevant the bug is. And therefor I'll also try to reproduce it. This might be a candidate for a 1.6.2 hotfix.

If you have any more details to share, feel free to reach out.

Please see the projects background information to get an idea about our workflow and priorities:

Best regards, Christian

buhtz avatar Apr 10 '26 15:04 buhtz

I setup a VM but was not able to reproduce the problem. I use the BIT root mode, creating a local-gocryptfs profile including /root as backup source.

buhtz avatar Apr 11 '26 14:04 buhtz

Hi,

I used backintime (root)

I did not do anything special with gocryptfs. just whatever backintime did.

my backup folder like /home is

UUID=xxxx home btrfs ***@***.***,defaults,noatime,compress=zstd:1 0 0

my first /home/.... files were from a cp -a --reflink=always set of files, but I saw gocryptfs

has problems with that. I think i saw files in the BIT GUI, but space was taken up on

the usb drive, but I could not open any files.

so i made a new copy of /home with cp -a --reflink=never

and did BIT again thinking that should fix it but then I got my current problem.

here is what is in the gocryptfs mount point when it is not mounted:

pwd
/root/.local/share/backintime/mnt
***@***.*** mnt]# find .
.
./3E6D84D8
./3E6D84D8/mountpoint
./3E6D84D8/locks
./3E6D84D8/umount
./37792BAD
./37792BAD/mountpoint
./37792BAD/locks
./37792BAD/umount

Stan

stant avatar Apr 11 '26 21:04 stant

Hello Stan, I don't get it. Your comments are also a bit confusing and lacking details.

But first of all I've noticed you use all lowercase. Proper capitalization improves readability and is gentle to the eyes of your readers. In English, capital letters are used at the beginning of sentences, for the word "I", and for proper nouns. It would be nice and helpful if you could consider that. It would ease my burden to read and understand your posts.

In your screenshots I saw you used /root as an include directory. But you write about /home. So what is the case? You manipulating the backup directories somehow with cp?

In this case I can not help you further because I it is impossible to reproduce the problem.

Please setup a fresh virtual machine and try to reproduce the problem. Write done all steps to reproduce the problem in a clear, short and understandable manner. Than I might be able to help.

my backup folder like /home is

What is a "backup folder"? Is it the backup destination (Where to save backups) or backup source (one of the directories in the include list)?

From my current point of view I don't see how I can help you without being able to reproduce the problem.

Reegards, Christian

buhtz avatar Apr 12 '26 06:04 buhtz

Hello Stan, I need to close the issue if you can't add more details pointing to a bug.

I am in the middle of re-writing the mount subsystem from scratch.

Regards, Christian

buhtz avatar May 05 '26 07:05 buhtz

The new mount subsystem is read for testing incl. full gocryptfs support as encfs replacement.

  • https://github.com/bit-team/backintime/pull/2449#issuecomment-4534635028
  • https://fosstodon.org/@backintime/116635499945145372

buhtz avatar May 25 '26 13:05 buhtz

Closing this ticket based on the comment above. Feel free to reopen if the problem still exists. Thank you for your efforts. If you have any further questions, ideas or encounter any other issues, please don't hesitate to let us know.

Best regards, Christian

buhtz avatar Jun 05 '26 21:06 buhtz