jose1711 / duplicity-fuse

Mount duplicity backup using FUSE
11 stars 3 forks source link

Mounting works, read write not #4

Closed pcace closed 1 year ago

pcace commented 6 years ago

Hey, thank you for your fast response! But here is another one - i guess its not meant to be like this: i can mount the backups (and it shows up correctly my one single testbackup) - but i am not able to read write whatsoever in that mount. Any idea what the Problem might be?

root@vmd30698:/scripts# python duplicity-fuse.py -o url=file:///mnt/gdrive/Backup/ /mnt/backup_fuse/
GnuPG passphrase: 

root@vmd30698:/scripts# ls /mnt/backup_fuse/
20181007025229_full

root@vmd30698:/scripts# ls /mnt/backup_fuse/20181007025229_full/
ls: reading directory '/mnt/backup_fuse/20181007025229_full/': Invalid argument

root@vmd30698:/scripts# cp -r /mnt/backup_fuse/20181007025229_full/ ~/backup/
cp: cannot access '/mnt/backup_fuse/20181007025229_full/': Invalid argument

root@vmd30698:/scripts# ls -la /mnt/backup_fuse/
total 0
drwxr-xr-x 2 root root 0 Jan  1  1970 20181007025229_full

root@vmd30698:/scripts# ls -la /mnt/backup_fuse/*
ls: reading directory '/mnt/backup_fuse/20181007025229_full': Invalid argument
total 0

Cheers and thanks!!!

jose1711 commented 6 years ago

please run this test case as a regular user (not root) and let me know if it works:

# simply ignore permission errors in duplicity output
duplicity full --no-encryption /etc file:///tmp/test_etc_bkp
mkdir /tmp/duplicity_fuse
PASSPHRASE='' python -i duplicity-fuse.py -o url=file:///tmp/test_etc_bkp /tmp/duplicity_fuse
ls -l /tmp/duplicity_fuse/*full/hosts
# you should get something like
# -rw-r--r-- 1 root root 999 apr 14 00:38 /tmp/duplicity_fuse/20181007174353_full/hosts
jose1711 commented 4 years ago

i also wonder why you want to be able to write into the mounted archive. the mount is supposed to be read-only.