Oops I forgot a word.
Code:
cat /etc/fedora-release
cat /etc/fedora-release
umount /home/tabish/.gvfs
ls -la /home/tabish | grep gvfs
Oop I forgot a word.
Code:cat /etc/fedora-release
And can you share the output of the following.
Code:umount /home/tabish/.gvfs ls -la /home/tabish | grep gvfs
tar -cpzf /var/backup/3-Wed-20211103-fullbackup.tar.gz /home
find /home | grep gvfs
Now try running this again and share the output.
Code:tar -cpzf /var/backup/3-Wed-20211103-fullbackup.tar.gz /home
Can you also share the output of the following running it as root.
Code:find /home | grep gvfs
#!/bin/bash
datapath="/home"
backuppath="/var/backup"
filename="$backuppath/$(date +%u-%a-%Y%m%d)-fullbackup.tar.gz"
if [ ! -d "$backuppath" ] ; then
mkdir "$backuppath"
fi
echo "Creating tar of location $datapath to $backuppath"
find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename
if [ $? -eq 0 ]
then
echo "Backup Finish"
else
echo "Backup Failed"
fi
Okay I know what the problem is now, you are running a very outdated version of Federo(14) so it doesn't suprise me that tar excludes don't seem to work as expected and that the environment variable to disable gvfsd didn't do as expected. You should seriously reinstall that system with the most recent version of Fedora(35). One question, why are you running on such an outdated version? For now this should make your script work to exclude the gvfs in case it shows again with the gvfs permission problem.
Bash:#!/bin/bash datapath="/home" backuppath="/var/backup" filename="$backuppath/$(date +%u-%a-%Y%m%d)-fullbackup.tar.gz" if [ ! -d "$backuppath" ] ; then mkdir "$backuppath" fi echo "Creating tar of location $datapath to $backuppath" find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename if [ $? -eq 0 ] then echo "Backup Finish" else echo "Backup Failed" fi
#!/bin/bash
datapath="/home"
backuppath="/var/backup"
filename="$backuppath/$(date +%u-%a-%Y%m%d)-fullbackup.tar.gz"
if [ ! -d "$backuppath" ] ; then
mkdir "$backuppath"
fi
echo "Creating tar of location $datapath to $backuppath"
find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename
if [ $? -eq 0 ]
then
echo "Backup Finish"
else
echo "Backup Failed"
fi
Can you change it to this.
Code:#!/bin/bash datapath="/home" backuppath="/var/backup" filename="$backuppath/$(date +%u-%a-%Y%m%d)-fullbackup.tar.gz" if [ ! -d "$backuppath" ] ; then mkdir "$backuppath" fi echo "Creating tar of location $datapath to $backuppath" find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename if [ $? -eq 0 ] then echo "Backup Finish" else echo "Backup Failed" fi
I edited my last post which you didn't see because it was such a small change.I cant see any changes here
find $datapath | grep -v gvfs.* | xargs tar -cvpzf $filename
find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename
Can you change it to this.
Code:#!/bin/bash datapath="/home" backuppath="/var/backup" filename="$backuppath/$(date +%u-%a-%Y%m%d)-fullbackup.tar.gz" if [ ! -d "$backuppath" ] ; then mkdir "$backuppath" fi echo "Creating tar of location $datapath to $backuppath" find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename if [ $? -eq 0 ] then echo "Backup Finish" else echo "Backup Failed" fi
I edited my last post which you didn't see because it was such a small change.
Change this:
To this.Code:find $datapath | grep -v gvfs.* | xargs tar -cvpzf $filename
Then run the script again and share the output.Code:find $datapath | grep -v gvfs.* | xargs tar -cpzf $filename
ls -l /home/tabish/local/share/Trash/info /home/tabish/local/share/Trash/files /home/tabish/Desktop
Share the output of the following.
ls -l /home/tabish/.local/share/Trash/info /home/tabish/.local/share/Trash/files /home/tabish/Desktop
I made a type in the last reply I made, can you run it again but like this.
ls -l /home/tabish/.local/share/Trash/info /home/tabish/.local/share/Trash/files /home/tabish/Desktop