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:
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
Permissions are wrong on one of your folders. Fix permissions then retry.
 

BuGoFf

Verified User
Joined
Nov 12, 2009
Messages
26
Location
Belgium
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?
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
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
 

scsi

Verified User
Joined
Aug 19, 2008
Messages
4,695
Im sure its more then that one file. Check parent folders.
 

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,788
Location
A Coruña, Spain
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 :)
 

Fred.

Verified User
Joined
Sep 5, 2009
Messages
220
all files are admin as user / group

After running set_permissions.sh still the same problem.

Very weird problem...
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
If I recall correctly I recently found out that the script doesn't touch users' permissions.

Jeff
 
Top