Errors when creating backups

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
Subject: An error occurred during the backup. Today at 21:43

Error Compressing the backup file /home/admin/backup/home.tar.gz : /bin/tar: Error in writing to standard output
/bin/tar: Error is not recoverable: exiting now

/bin/tar: domains/domain.com/awstats/.data/awstats.domain.com.conf: Cannot stat: Permission denied
/bin/tar: domains/domain.com/logs/Feb-2010.tar.gz: Cannot stat: Permission denied
...

always "Cannot stat: Permission denied" :confused:
 
Permissions are wrong on one of your folders. Fix permissions then retry.
 
What rights do the files have, you can see it with ls -al file

I suspect your files from having the wrong owner rights.

Are you running the backup script as admin or as your own user?
 
This is what i got

The backup is running as admin, the file owner is also admin

Code:
[root@server01 .data]# ls -all
total 60
drw-r--r-- 2 admin admin    37 Sep 20 00:10 .
drwxr-xr-x 7 admin admin    62 Feb  1 00:10 ..
-rw-r--r-- 1 admin admin 60668 Sep 20 00:10 awstats.domain.com.conf
 
Im sure its more then that one file. Check parent folders.
 
if im not wrong you should run this command for reset all permissions

/usr/local/directadmin/scripts/set_permissions.sh

but dunno if this reset users permission aswell.

Hope it help :)
 
all files are admin as user / group

After running set_permissions.sh still the same problem.

Very weird problem...
 
If I recall correctly I recently found out that the script doesn't touch users' permissions.

Jeff
 
Back
Top