Write a script that automates tar so the person executing the script always uses the desired options (cvp) and backup destination

Share the output of this.
tar -cpzf --exclude=/home/tabish/.gvfs /var/backup/3-Wed-20211103-fullbackup.tar.gz /home/tabish
 


Share the output of this.
Same Error

[root@localhost tabish]# tar -cpzf --exclude=/home/tabish/.gvfs /var/backup/3-Wed-20211103-fullbackup.tar.gz /home/tabish /home
tar: Removing leading / from member names
tar: (child): --exclude=/home/tabish/.gvfs: Cannot open: No such file or directory
tar: (child): Error is not recoverable: exiting now
tar: --exclude=/home/tabish/.gvfs: Wrote only 4096 of 10240 bytes
tar: Error is not recoverable: exiting now
 
Can you share the output of the following.
Code:
cat /etc/fuse.conf
And do you have an sshfs mount on your system?
 
Can you share the output of the following.
Code:
cat /etc/fuse.conf
And do you have an sshfs mount on your system?

[root@localhost tabish]# cat /etc/fuse.conf
cat: /etc/fuse.conf: No such file or directory
 
As well as share the output of the following.
Code:
cat /etc/fstab
df
 
As well as share the output of the following.
Code:
cat /etc/fstab
df
[root@localhost tabish]# cat /etc/fstab

#

# /etc/fstab

#Created by anaconda on Wed Jul 7 16:21:18 2021

#

# Accessible filesystems, by reference, are maintained under '/dev/disk' #See man pages fstab (5), findfs (8), mount (8) and/or blkid(8) for more info

#

/dev/mapper/VolGroup-lv_root /

UUID=fblf8938-3a57-4f8a-8980-0abc6c83499a /boot

ext4

swap

defaults

ext4

1 1

12

/dev/mapper/VolGroup-lv_swap swap /dev/shm

defaults

defaults

tmpfs

devpts

/dev/pts

tmpfs

defaults

00

sysfs

/sys

devpts gid-5,mode-620

proc

/proc

sysfs

proc

defaults

defaults
 
The only other thing I can think is that user is active and there for .gvfs for that user still being used and therefore still being there, although I find it strange that tar won't accept any excludes when it comes to that file. As root run the following and share the output.
Code:
pkill -U tabish && pkill -U tabish
ps -U tabish
ls -la /home/tabish | grep .gvfs
 
The only other thing I can think is that user is active and there for .gvfs for that user still being used and therefore still being there, although I find it strange that tar won't accept any excludes when it comes to that file. As root run the following and share the output.
Code:
pkill -U tabish && pkill -U tabish
ps -U tabish
ls -la /home/tabish | grep .gvfs

[tabish@localhost -]$ ls -la /home/tabish | grep .gvfs
-rw-r--r-- 1 root root 8281753 Nov 3 19:14 --exclude=.gvfs
dr-x------ 2 tabish tabish 0 Nov 3 20:17 .gvfs
 

Attachments

  • ps -au.png
    ps -au.png
    139.5 KB · Views: 153
What distribution are you running?
 
Add the following variable to /etc/environment and then reboot.
Code:
GVFS_DISABLE_FUSE
Afterward share the output of the following again.
Code:
ls -la /home/tabish | grep gvfs
 
Add the following variable to /etc/environment and then reboot.
Code:
GVFS_DISABLE_FUSE
Afterward share the output of the following again.
Code:
ls -la /home/tabish | grep gvfs

[root@localhost tabish]# ls -la /home/tabish | grep gvfs
ls: cannot access /home/tabish/.gvfs: Permission denied
-rw-r--r-- 1 root root 8281753 Nov 3 19:14 --exclude=.gvfs
d?????????? ? ? ? ? ? .gvfs
 
[root@localhost tabish]# ls -la /home/tabish | grep gvfs
ls: cannot access /home/tabish/.gvfs: Permission denied
-rw-r--r-- 1 root root 8281753 Nov 3 19:14 --exclude=.gvfs
d?????????? ? ? ? ? ? .gvfs
Where and how are you using gvfs to create this file, that way I can try and recreate it on my Fedoera vm.
 
Can you share the output of the following.
Code:
rpm -qa | grep gvfs
Are you running something like x2go or some other remote connection service?
 
Can you share the output of the following.
Code:
rpm -qa | grep gvfs
Are you running something like x2go or some other remote connection service?

[tabish@localhost -]$ rpm -qa | grep gvfs
gvfs-1.6.4-2.fc14.x86 64
gvfs-archive-1.6.4-2.fc14.x86_64
gvfs-fuse-1.6.4-2.fc14.x86 64
gvfs-afc-1.6.4-2.fc14.x86_64
gvfs-smb-1.6.4-2.fc14.x86 64
gvfs-gphoto2-1.6.4-2.fc14.x86_64
gvfs-obexftp-1.6.4-2.fc14.x86_64
 
Can you share the output of the following?
Code:
mount |grep gvfs
/etc/fedora-release
 
Can you share the output of the following?
Code:
mount |grep gvfs
/etc/fedora-release

[root@localhost tabish]# mount | grep gvfs
gvfs-fuse-daemon on /home/tabish/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=tabish)
[root@localhost tabish]# /etc/fedora-release
bash: /etc/fedora-release: Permission denied
 

Staff online


Top